Skip to content

Commit 132762f

Browse files
committed
apply suggestions
1 parent 8ef9c77 commit 132762f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/resty/aws/credentials/RemoteCredentials.lua

+3-9
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,9 @@ local function initialize()
7979
({ http = 80, https = 443 })[FullUri.scheme]
8080
end
8181

82-
-- get auth token
83-
if aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN then
84-
AuthToken = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN
85-
end
86-
87-
-- get auth token file path
88-
if aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE then
89-
AuthTokenFile = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE
90-
end
82+
-- get auth token/file
83+
AuthToken = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN
84+
AuthTokenFile = aws_config.global.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE
9185

9286
initialize = nil
9387
end

0 commit comments

Comments
 (0)