Skip to content

Commit 7be66e5

Browse files
authored
Merge pull request #2 from divvyseldome/simpler-logic
Simpler logic
2 parents b6757b5 + 5a11567 commit 7be66e5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

chia-log-analyzer.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,22 +320,20 @@ func parseLines(lines []string) {
320320
if s == "" {
321321
continue
322322
}
323-
if startParsingLines == false {
323+
if !startParsingLines {
324324
if lastRow == "" { //first run ?
325325
startParsingLines = true
326326
} else {
327327
if lastRow == s {
328328
startParsingLines = true
329-
continue
330-
} else {
331-
continue
332329
}
330+
continue
333331
}
334332
}
335333

336334
lastRow = s
337335

338-
if regexPlotsFarming.MatchString(s) == true {
336+
if regexPlotsFarming.MatchString(s) {
339337
lastParsedLinesStack.push(s)
340338

341339
match := regexPlotsFarming.FindStringSubmatch(s)

0 commit comments

Comments
 (0)