local control flow cleanup (#1215)

removed redundant/unreachable returns, else branches, type declarations, unused variables
This commit is contained in:
mmetc 2022-02-01 22:08:06 +01:00 committed by GitHub
parent d5f17ee377
commit ad28a979e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 187 additions and 242 deletions

View file

@ -443,7 +443,7 @@ func DumpTree(parser_results ParserResults, bucket_pour BucketPourInfo, opts Dum
fmt.Printf("\t├ Scenarios\n")
}
bnames := make([]string, 0, len(state[tstamp]["buckets"]))
for k, _ := range state[tstamp]["buckets"] {
for k := range state[tstamp]["buckets"] {
//there is a trick : to know if an event succesfully exit the parsers, we check if it reached the pour() phase
//we thus use a fake stage "buckets" and a fake parser "OK" to know if it entered
if k == "OK" {