Skip to content

Commit

Permalink
Revert "Merge pull request presidentbeef#830 from bf4/patch-2"
Browse files Browse the repository at this point in the history
This reverts commit 998bb00, reversing
changes made to 779bfc0.
  • Loading branch information
presidentbeef committed Feb 25, 2016
1 parent 998bb00 commit 0687da2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/brakeman
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#Adjust path in case called directly and not through gem
$:.unshift "#{File.expand_path(File.dirname(__FILE__))}/../lib"

require 'json'
require 'brakeman'
require 'brakeman/options'
require 'brakeman/version'
Expand Down Expand Up @@ -63,12 +62,12 @@ begin

if options[:comparison_output_file]
File.open options[:comparison_output_file], "w" do |f|
f.puts Json.dump(vulns, :pretty => true)
f.puts MultiJson.dump(vulns, :pretty => true)
end

Brakeman.notify "Comparison saved in '#{options[:comparison_output_file]}'"
else
puts Json.dump(vulns, :pretty => true)
puts MultiJson.dump(vulns, :pretty => true)
end

if options[:exit_on_warn] && vulns[:new].count > 0
Expand Down

0 comments on commit 0687da2

Please sign in to comment.