lib/swiftformat/swiftformat.rb in danger-swiftformat-0.8.0 vs lib/swiftformat/swiftformat.rb in danger-swiftformat-0.8.1
- old
+ new
@@ -12,10 +12,10 @@
def check_format(files, additional_args = "", swiftversion = "")
cmd = [@path] + files
cmd << additional_args.split unless additional_args.nil? || additional_args.empty?
- unless swiftversion.empty?
+ unless swiftversion.nil? || swiftversion.empty?
cmd << "--swiftversion"
cmd << swiftversion
end
cmd << %w(--lint --lenient)