Skip to content

Commit e315f2c

Browse files
committed
fix a lint warning
1 parent 00d39c3 commit e315f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vips/image.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ def self.run_cmplx image, &block
138138
image = image.cast :float
139139
end
140140

141-
new_format = image.format == :double ? :dpcomplex : :complex
141+
new_format = (image.format == :double) ? :dpcomplex : :complex
142142
image = image.copy format: new_format, bands: image.bands / 2
143143
end
144144

145145
image = block.call(image)
146146

147147
unless Image.complex? original_format
148-
new_format = image.format == :dpcomplex ? :double : :float
148+
new_format = (image.format == :dpcomplex) ? :double : :float
149149
image = image.copy format: new_format, bands: image.bands * 2
150150
end
151151

0 commit comments

Comments
 (0)