File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
Lint/EndAlignment :
7
7
AlignWith : variable
8
8
9
+ Lint/UnneededSplatExpansion :
10
+ Enabled : false
11
+
9
12
Metrics/AbcSize :
10
13
Max : 30
11
14
Original file line number Diff line number Diff line change @@ -51,12 +51,11 @@ def mepp(image_a, image_b)
51
51
2>&1
52
52
] . join ( ' ' )
53
53
output = ImageOptim ::Cmd . capture ( command )
54
- if [ 0 , 1 ] . include? ( $CHILD_STATUS. exitstatus )
55
- num_r = '\d+(?:\.\d+(?:[eE][-+]?\d+)?)?'
56
- output [ /\( (#{ num_r } ), #{ num_r } \) / , 1 ] . to_f
57
- else
54
+ unless [ 0 , 1 ] . include? ( $CHILD_STATUS. exitstatus )
58
55
fail "compare #{ image_a } with #{ image_b } failed with `#{ output } `"
59
56
end
57
+ num_r = '\d+(?:\.\d+(?:[eE][-+]?\d+)?)?'
58
+ output [ /\( (#{ num_r } ), #{ num_r } \) / , 1 ] . to_f
60
59
end
61
60
62
61
RSpec ::Matchers . define :be_smaller_than do |expected |
You can’t perform that action at this time.
0 commit comments