diff --git a/lib/slop.rb b/lib/slop.rb
index <HASH>..<HASH> 100644
--- a/lib/slop.rb
+++ b/lib/slop.rb
@@ -267,9 +267,7 @@ private
   end
 
   def check_invalid_option(item, flag)
-    if item[/^--?/] && @strict
-      @invalid_options << flag
-    end
+    @invalid_options << flag if item[/^--?/] && @strict
   end
 
   def clean_options(args)
roflscale code by removing lines