Skip to content

Commit

Permalink
Fix redundant if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
brrygrdn committed Jun 16, 2023
1 parent 42a6497 commit 1da6c28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/lib/dependabot/file_updaters/artifact_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ def get_encoded_file_contents(path, operation)

if binary_file?(path)
encoding = Dependabot::DependencyFile::ContentEncoding::BASE64
if operation != Dependabot::DependencyFile::Operation::DELETE
encoded_content = Base64.encode64(encoded_content)
end
encoded_content = Base64.encode64(encoded_content)
end

[encoded_content, encoding]
Expand Down

0 comments on commit 1da6c28

Please sign in to comment.