From 41d6245efa73470d5280845da92793c76e104543 Mon Sep 17 00:00:00 2001 From: Ilya Vassilevsky Date: Fri, 28 Aug 2015 00:24:57 +0300 Subject: [PATCH] Improve condition semantics --- lib/face_control/checkers/_example.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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