summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
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