Skip to content

Commit

Permalink
Don't use prism if it's totally unavailable
Browse files Browse the repository at this point in the history
Even if asked to
  • Loading branch information
presidentbeef committed Jul 12, 2024
1 parent 4c3cebc commit 0601d35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/brakeman/file_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ class FileParser
attr_reader :file_list, :errors

def initialize app_tree, timeout, parallel = true, use_prism = false
@use_prism = use_prism
require 'prism' if @use_prism
@use_prism = use_prism && require('prism')

@app_tree = app_tree
@timeout = timeout
Expand Down

0 comments on commit 0601d35

Please sign in to comment.