Skip to content

Commit d4f5546

Browse files
committed
Syntax correction
Signed-off-by: poorndm <poorndm@progress.com>
1 parent f564c6e commit d4f5546

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/omnibus/fetchers/net_fetcher.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ def verify_checksum!
287287
log.info(log_key) { "Verifying checksum" }
288288

289289
# Check if the source is a Git repository
290-
if source[:url] =~ /git@|https?:\/\/.*\.git/
290+
if source[:url] =~ %r{git@|https?:\/\/.*\.git}
291291
log.warn(log_key) { "Skipping checksum verification for Git source: #{source[:url]}" }
292292
return
293293
end
294294

295295
expected = checksum
296-
actual = digest(downloaded_file, digest_type)
296+
actual = digest(downloaded_file, digest_type)
297297

298298
if expected != actual
299299
raise ChecksumMismatch.new(self, expected, actual)

0 commit comments

Comments
 (0)