diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-16 00:50:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-16 00:52:46 +0300 |
commit | 3852e4bb8f61446575550d8b17ab4d6904a88018 (patch) | |
tree | c4db8b1af53ddd0b029ef1111f3229d355771963 /release/scripts/startup/bl_operators | |
parent | 20d38dafbd35e50e21376db62aa2656238fa8619 (diff) |
Cleanup: redundant len() checks
Diffstat (limited to 'release/scripts/startup/bl_operators')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 4fcadbf63e3..260afd39b65 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -2521,11 +2521,11 @@ class WM_OT_studiolight_uninstall(Operator): userpref = context.user_preferences for studio_light in userpref.studio_lights: if studio_light.index == self.index: - if len(studio_light.path) > 0: + if studio_light.path: self._remove_path(pathlib.Path(studio_light.path)) - if len(studio_light.path_irr_cache) > 0: + if studio_light.path_irr_cache: self._remove_path(pathlib.Path(studio_light.path_irr_cache)) - if len(studio_light.path_sh_cache) > 0: + if studio_light.path_sh_cache: self._remove_path(pathlib.Path(studio_light.path_sh_cache)) userpref.studio_lights.remove(studio_light) return {'FINISHED'} |