Skip to content

Commit 5c7724a

Browse files
committed
adjust comments
1 parent 6b52189 commit 5c7724a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/eslint-plugin-aws-toolkits/lib/rules/no-json-stringify-in-log.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ function isTemplateWithStringifyCall(node: TSESTree.CallExpressionArgument): boo
3030
}
3131

3232
/**
33-
* Check if node is representing syntax of the form getLogger().f(msg) for some f and msg.
34-
*
33+
* Check if node is representing syntax of the form getLogger().f(msg) for some f and msg or
34+
* if it is doing so indirectly via a logger variable.
3535
*/
3636
function isLoggerCall(node: TSESTree.CallExpression): boolean {
3737
return (
@@ -44,7 +44,7 @@ function isLoggerCall(node: TSESTree.CallExpression): boolean {
4444
}
4545

4646
/**
47-
* Use two simple heuristics to detect `disguised` logger calls. This is when we log without getLogger.
47+
* Use two simple heuristics to detect `disguised` logger calls. This is when we log without getLogger in the same statement.
4848
* Ex.
4949
* const logger = getLogger()
5050
* logger.debug(m)

0 commit comments

Comments
 (0)