diff --git a/lib/face_control/checkers/_example.rb b/lib/face_control/checkers/_example.rb index 0dd0422..f620016 100644 --- a/lib/face_control/checkers/_example.rb +++ b/lib/face_control/checkers/_example.rb @@ -29,7 +29,7 @@ def parse(command_output) mode = fields.first file = fields.last - if mode != '-rwxr-xr-x' + unless mode == '-rwxr-xr-x' Comment.new(file: file, line: 1, text: 'Invalid file mode') end end