lib/swiftformat/swiftformat.rb in danger-swiftformat-0.2.0 vs lib/swiftformat/swiftformat.rb in danger-swiftformat-0.3.0

- old
+ new

@@ -8,10 +8,10 @@ Cmd.run([@path, "--version"]) end def check_format(files, additional_args = "") cmd = [@path] + files - cmd << additional_args.split unless additional_args.empty? + cmd << additional_args.split unless additional_args.nil? || additional_args.empty? cmd << %w(--dryrun --verbose) output = Cmd.run(cmd.flatten) raise "error running swiftformat: empty output" if output.empty? process(output) end