lib/types: simplify isRawType

No change in behaviour.
This commit is contained in:
Matt Sturgeon
2024-06-17 00:01:39 +01:00
parent 69e43a6bf9
commit 2d063c2c24
+1 -1
View File
@@ -14,7 +14,7 @@ let
};
in
rec {
isRawType = v: lib.isAttrs v && lib.hasAttr "__raw" v && lib.isString v.__raw;
isRawType = v: v ? __raw && isString v.__raw;
rawLua = mkOptionType {
name = "rawLua";