enable lint avoid_bool_literals_in_conditional_expressions (#35055)
This commit is contained in:
committed by
GitHub
parent
9a3a7490c8
commit
fecf99ff1e
@@ -430,7 +430,7 @@ class SampleChecker {
|
||||
startLine = Line('', filename: relativeFilePath, line: lineNumber + 1, indent: 3);
|
||||
inPreamble = true;
|
||||
} else if (sampleMatch != null) {
|
||||
inSnippet = sampleMatch != null ? sampleMatch[1] == 'snippet' : false;
|
||||
inSnippet = sampleMatch != null && sampleMatch[1] == 'snippet';
|
||||
if (inSnippet) {
|
||||
startLine = Line(
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user