exe/hrw in hrw-0.1.0 vs exe/hrw in hrw-0.2.0

- old
+ new

@@ -21,25 +21,19 @@ puts '[-] no url' exit(1) end end -begin - scanner = Hrw::Detector.detect - specs = scanner.scan +scanner = Hrw::Detector.detect +specs = scanner.scan - api = Hrw::API.new(options.url) - hash = api.submit(specs) - result = api.retrieve(hash) +api = Hrw::API.new(options.url) +hash = api.submit(specs) +result = api.retrieve(hash) - formatter = Hrw::Formatter.new - vulnerable_deps = formatter.format(result) +formatter = Hrw::Formatter.new +vulnerable_deps = formatter.format(result) - unless vulnerable_deps.empty? - formatter.print_vulnerable_deps(vulnerable_deps) - exit(1) - end -rescue StandardError => ex - require 'pry-byebug' - binding.pry - puts ex.message -end \ No newline at end of file +unless vulnerable_deps.empty? + formatter.print_vulnerable_deps(vulnerable_deps) + exit(1) + end