File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def self.space(size)
15
15
else
16
16
log_denominator = Math . log ( size . abs ) / Math . log ( BASE )
17
17
degree = [ log_denominator . floor , SIZE_SYMBOLS . length - 1 ] . min
18
- number_string = if degree == 0
18
+ number_string = if degree . zero?
19
19
size . to_s
20
20
else
21
21
denominator = BASE **degree
Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ module CapabilityCheckHelpers
78
78
def any_file_modes_allowed?
79
79
Tempfile . open 'posix' do |f |
80
80
File . chmod ( 0 , f . path )
81
- File . stat ( f . path ) . mode & 0o777 == 0
81
+ ( File . stat ( f . path ) . mode & 0o777 ) . zero?
82
82
end
83
83
end
84
84
85
85
def inodes_supported?
86
- File . stat ( __FILE__ ) . ino != 0
86
+ ! File . stat ( __FILE__ ) . ino . zero?
87
87
end
88
88
89
89
def signals_supported?
You can’t perform that action at this time.
0 commit comments