File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/eslint-plugin-aws-toolkits/lib/rules Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 */
3636function 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)
You can’t perform that action at this time.
0 commit comments