diff --git a/gsc.py b/gsc.py index b28c36a3..601db2f8 100755 --- a/gsc.py +++ b/gsc.py @@ -22,15 +22,14 @@ import yaml # pylint: disable=import-error def test_trueish(value): - if bool(value) is True: - value = value.casefold() - if not value or value in ('false', 'off', 'no'): - return False - if value in ('true', 'on', 'yes'): - return True - if value.isdigit(): - return bool(int(value)) - raise ValueError(f'Invalid value for trueish: {value!r}') + value = value.casefold() + if not value or value in ('false', 'off', 'no'): + return False + if value in ('true', 'on', 'yes'): + return True + if value.isdigit(): + return bool(int(value)) + raise ValueError(f'Invalid value for trueish: {value!r}') def gsc_image_name(original_image_name): return f'gsc-{original_image_name}'