Skip to content

Commit 1d5c4a0

Browse files
remove unnecessary comments in AvoidDebugPrintInReleaseVisitor
1 parent a49b4be commit 1d5c4a0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/src/lints/avoid_debug_print_in_release/visitors/avoid_debug_print_in_release_visitor.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ class AvoidDebugPrintInReleaseVisitor extends SimpleAstVisitor<void> {
3131

3232
@override
3333
void visitSimpleIdentifier(SimpleIdentifier node) {
34-
/// Catch cases where debugPrint is passed as a reference:
35-
/// final x = debugPrint;
3634
if (node.parent is! MethodInvocation) {
3735
_check(node, node);
3836
}
@@ -42,7 +40,6 @@ class AvoidDebugPrintInReleaseVisitor extends SimpleAstVisitor<void> {
4240
final element = identifier.element;
4341
if (element == null) return;
4442

45-
// Check the name
4643
if (element.name == _debugPrint) {
4744
final sourceUri = element.library?.uri.toString() ?? '';
4845

0 commit comments

Comments
 (0)