Skip to content

Commit

Permalink
[rubygems/rubygems] Replacing clone with dup
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-niknam authored and hsbt committed Aug 31, 2021
1 parent 4715bbf commit 1948ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/printable_uri.rb
Expand Up @@ -16,7 +16,7 @@ def initialize(original_uri)

def parse_uri
@original_uri = Gem::UriParser.parse_uri(@original_uri)
@uri = @original_uri.clone
@uri = @original_uri.dup
redact_credential if valid_uri?
end

Expand Down

0 comments on commit 1948ac2

Please sign in to comment.