Skip to content

Commit

Permalink
Review feedback -- avoid instantiating a variable that we don't re-use
Browse files Browse the repository at this point in the history
  • Loading branch information
betesh committed Nov 17, 2020
1 parent e2aff9b commit d7b6c75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rjgit.rb
Expand Up @@ -231,8 +231,7 @@ def self.grep(repository, query, options={})
end
bytes = repo.open(id).get_bytes

binary = RawText.is_binary(bytes)
next if binary
next if RawText.is_binary(bytes)

file_contents = bytes.to_s
next unless query.match(file_contents)
Expand Down

0 comments on commit d7b6c75

Please sign in to comment.