diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py index 69288e0f4..a64600652 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -2038,7 +2038,4 @@ class JSClipboardPermission(String, AsBool): return value == "access-paste" def from_bool(self, value: bool) -> str: - if value is True: - return "access-paste" - else: - return "none" + return "access-paste" if value else "none"