File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ def initialize(request)
17
17
@function_name = ENV [ 'AWS_LAMBDA_FUNCTION_NAME' ]
18
18
@memory_limit_in_mb = ENV [ 'AWS_LAMBDA_FUNCTION_MEMORY_SIZE' ]
19
19
@function_version = ENV [ 'AWS_LAMBDA_FUNCTION_VERSION' ]
20
- @identity = JSON . parse ( request [ 'Lambda-Runtime-Cognito-Identity' ] ) if request [ 'Lambda-Runtime-Cognito-Identity' ] . present ?
21
- @client_context = JSON . parse ( request [ 'Lambda-Runtime-Client-Context' ] ) if request [ 'Lambda-Runtime-Client-Context' ] . present ?
20
+ @identity = JSON . parse ( request [ 'Lambda-Runtime-Cognito-Identity' ] ) unless request [ 'Lambda-Runtime-Cognito-Identity' ] . to_s . empty ?
21
+ @client_context = JSON . parse ( request [ 'Lambda-Runtime-Client-Context' ] ) unless request [ 'Lambda-Runtime-Client-Context' ] . to_s . empty ?
22
22
end
23
23
24
24
def get_remaining_time_in_millis
You can’t perform that action at this time.
0 commit comments