enable lint avoid_bool_literals_in_conditional_expressions (#35055)

This commit is contained in:
Alexandre Ardhuin
2019-06-25 17:40:05 +02:00
committed by GitHub
parent 9a3a7490c8
commit fecf99ff1e
21 changed files with 27 additions and 25 deletions

View File

@@ -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(
'',