lib/neetob/cli/github/brakeman.rb in neetob-0.4.3 vs lib/neetob/cli/github/brakeman.rb in neetob-0.4.4

- old
+ new

@@ -23,10 +23,10 @@ clone_repo_in_tmp_dir(repo) bundle_install(repo) report = run_brakeman(repo) ui.success("Successfully executed brakeman for #{repo}") warnings = report.split("\n\n== Warnings ==\n\n").last&.split("\n\n") - if !report.include?("No warnings found") + if !report.include?("No warnings found") && !report.blank? issue = client.create_issue(repo, DESCRIPTION, parse_description(warnings)) ui.success("Issue created at #{issue.html_url}") end rescue StandardError => e ExceptionHandler.new(e).process