Skip to content

Commit 9fb4972

Browse files
committed
Solve rubocop offenses
1 parent c4779fa commit 9fb4972

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/puppet/provider/java_ks/keytool.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ def exists?
173173

174174
# Extracts the fingerprints of a given output
175175
def extract_fingerprint(output)
176-
fps = Array.new
177-
output.scan(%r{^Certificate fingerprints:(.*?)Signature?}m).flatten.each { |certblock|
176+
fps = []
177+
output.scan(%r{^Certificate fingerprints:(.*?)Signature?}m).flatten.each do |certblock|
178178
fps.push(certblock.scan(%r{^\s+\S+:\s+(\S+)}m))
179-
}
179+
end
180180
fps.flatten.sort.join('/')
181181
end
182182

0 commit comments

Comments
 (0)