Little cleanup.
authorcah <cah@ableton.com>
Thu, 17 Feb 2022 23:02:04 +0000 (00:02 +0100)
committercah <cah@ableton.com>
Thu, 17 Feb 2022 23:02:04 +0000 (00:02 +0100)
cdist

diff --git a/cdist b/cdist
index 87db25ab2fdb0daff77a53d6cd9fd0aa3a99bf11..6315653cf8b5b5474048a889db62aa8518e551c2 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -103,7 +103,7 @@ class BoolOption(object):
 
     def offer(self, key, value):
         if key == self.key:
-            self.value = (value == 'yes' or value == '1' or value == 'true')
+            self.value = value in ['yes', '1', 'true']
 
 class Config:
     def __init__(self):