Skip to content

Commit

Permalink
Merge pull request #2 from divvyseldome/simpler-logic
Browse files Browse the repository at this point in the history
Simpler logic
  • Loading branch information
kubec authored May 30, 2021
2 parents b6757b5 + 5a11567 commit 7be66e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions chia-log-analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,22 +320,20 @@ func parseLines(lines []string) {
if s == "" {
continue
}
if startParsingLines == false {
if !startParsingLines {
if lastRow == "" { //first run ?
startParsingLines = true
} else {
if lastRow == s {
startParsingLines = true
continue
} else {
continue
}
continue
}
}

lastRow = s

if regexPlotsFarming.MatchString(s) == true {
if regexPlotsFarming.MatchString(s) {
lastParsedLinesStack.push(s)

match := regexPlotsFarming.FindStringSubmatch(s)
Expand Down

0 comments on commit 7be66e5

Please sign in to comment.