Commit 13f79da2 authored by aklyachkin's avatar aklyachkin
Browse files

rubocop warnings fixed



Signed-off-by: default avataraklyachkin <aklyachkin@gmail.com>
parent 83991459
...@@ -49,7 +49,7 @@ module Omnibus ...@@ -49,7 +49,7 @@ module Omnibus
# have already removed anything extraneous. # have already removed anything extraneous.
# #
def clean def clean
return true true
end end
# #
...@@ -114,11 +114,9 @@ module Omnibus ...@@ -114,11 +114,9 @@ module Omnibus
# @return [String] # @return [String]
# #
def target_shasum def target_shasum
begin @target_shasum ||= digest(target_file, :sha256)
@target_shasum ||= digest(target_file, :sha256) rescue Errno::ENOENT
rescue Errno::ENOENT @target_shasum = 0
@target_shasum = 0
end
end end
# #
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment