Skip to content

Commit 6d1df8c

Browse files
committed
Merge pull request #11 from mjurin/master
change gsub! with gsub in identity_token private key method
2 parents c74947a + 03b022a commit 6d1df8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/layer/identity_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def claim
4747
def private_key
4848
# Cloud66 stores newlines as \n instead of \\n
4949
key = ENV['LAYER_PRIVATE_KEY'].dup
50-
OpenSSL::PKey::RSA.new(key.gsub!("\\n","\n"))
50+
OpenSSL::PKey::RSA.new(key.gsub("\\n","\n"))
5151
end
5252
end
5353
end

0 commit comments

Comments
 (0)