Skip to content

Commit 0e11f8f

Browse files
committed
Issue #92: fixed conflicting lints in test
1 parent 09536d5 commit 0e11f8f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lint_test/dont_create_a_return_var_test.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ignore_for_file: unused_local_variable
1+
// ignore_for_file: unused_local_variable, newline_before_return, no_empty_block
22

33
/// Test the dont_create_a_return_var.
44
/// Good code, trivial case.
@@ -90,7 +90,7 @@ int returnVarTestBadImmutableExpression() {
9090
+ _TestClass.finalValue
9191
+ testObj.finalField;
9292
_doNothing();
93-
93+
9494
//expect_lint: dont_create_a_return_var
9595
return result;
9696
}
@@ -101,7 +101,6 @@ int _testValueEval() {
101101

102102
/// This method is a placeholder for unpredictable behaviour
103103
/// which can potentially change any mutable variables
104-
//ignore: no_empty_block
105104
void _doNothing() { }
106105

107106
//ignore: prefer_match_file_name

0 commit comments

Comments
 (0)