lib/apkstats/plugin.rb in danger-apkstats-0.0.1 vs lib/apkstats/plugin.rb in danger-apkstats-0.0.2

- old
+ new

@@ -42,12 +42,14 @@ raise 'apks must be specified' if apk_filepath.nil? || apk_filepath.empty? out, err = command.compare_with(apk_filepath, other_apk_filepath) if opts[:do_report] - if out + if out&.empty? + message("Apk file size was not changed") + elsif out left, right, diff, = out.split("\s") - message("Apk file size was changed by #{diff} : from #{right} to #{left}") + message("Apk file size was changed by #{diff} : from #{left} to #{right}") else warn(err) end end