summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-15 23:09:58 +0100
committernfnty <git@nfnty.se>2017-01-17 05:59:04 +0100
commit84a22ae0c78b087b0cb080f47620291833586e6f (patch)
tree95b6c55d171d61d9c1c6b552ce17c2e34ba21acc /examples
parent52403c53841a30edf550f5610e33e6c0981caad1 (diff)
downloadranger-84a22ae0c78b087b0cb080f47620291833586e6f.tar.gz
linting: pylint 2.0.0
Diffstat (limited to 'examples')
-rw-r--r--examples/plugin_file_filter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/plugin_file_filter.py b/examples/plugin_file_filter.py
index 27afd551..f5c474c5 100644
--- a/examples/plugin_file_filter.py
+++ b/examples/plugin_file_filter.py
@@ -19,8 +19,7 @@ HIDE_FILES = ("/boot", "/sbin", "/proc", "/sys")
 def custom_accept_file(fobj, filters):
     if not fobj.fm.settings.show_hidden and fobj.path in HIDE_FILES:
         return False
-    else:
-        return ACCEPT_FILE_OLD(fobj, filters)
+    return ACCEPT_FILE_OLD(fobj, filters)
 
 
 # Overwrite the old function