Skip to content

Commit 8ba5544

Browse files
committed
Corrected evaluation of default value type
1 parent 45ef1dd commit 8ba5544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit_hooks/check_preference_manifests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def validate_pfm_default(subkey, filename):
282282
# continue
283283
# else:
284284
desired_type = PLIST_TYPES[subkey["pfm_type"]]
285-
if isinstance(subkey[test_key], desired_type):
285+
if not isinstance(subkey[test_key], desired_type):
286286
print(
287287
f"{filename}: {test_key} value for {subkey.get('pfm_name')} should be type "
288288
f"{PLIST_TYPES[subkey['pfm_type']]}, not type {type(subkey[test_key])}"

0 commit comments

Comments
 (0)