Skip to content

Commit f427e2c

Browse files
committed
rubocop fix
1 parent b8bd9f6 commit f427e2c

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src-common/lambda_base.rb

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ def initialize(config, event = {}, client_context = {})
4444
read_cognito_token(event)
4545
end
4646

47-
# exception message strings were including a dump of object properties
48-
# this was leaking data to opersearch.
49-
# this prevents any object (including MySql2::Client) from dumping properties
50-
def inspect
51-
"#{self.class} (property listing suppressed)"
52-
end
53-
5447
def read_cognito_token(event)
5548
cognito_token = event.fetch('headers', {}).fetch('x-amzn-oidc-accesstoken', '')
5649
if cognito_token.empty?
@@ -345,11 +338,11 @@ def self.log(message)
345338
end
346339
end
347340

348-
# prevent logging credentials to opensearch
341+
# exception message strings were including a dump of object properties
342+
# this was leaking data to opersearch.
343+
# this prevents any object (including MySql2::Client) from dumping properties
349344
class Object
350345
def inspect
351-
def inspect
352-
"#{self.class} (property listing suppressed)"
353-
end
346+
"#{self.class} (property listing suppressed)"
354347
end
355-
end
348+
end

0 commit comments

Comments
 (0)