Skip to content

Commit 9611675

Browse files
rociiukaralabe
authored andcommitted
cmd/geth: fix golint issue (#17176)
1 parent 2e0391e commit 9611675

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎cmd/geth/monitorcmd.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ func resolveMetric(metrics map[string]interface{}, pattern string, path string)
185185
parts := strings.SplitN(pattern, "/", 2)
186186
if len(parts) > 1 {
187187
for _, variation := range strings.Split(parts[0], ",") {
188-
if submetrics, ok := metrics[variation].(map[string]interface{}); !ok {
188+
submetrics, ok := metrics[variation].(map[string]interface{})
189+
if !ok {
189190
utils.Fatalf("Failed to retrieve system metrics: %s", path+variation)
190191
return nil
191-
} else {
192-
results = append(results, resolveMetric(submetrics, parts[1], path+variation+"/")...)
193192
}
193+
results = append(results, resolveMetric(submetrics, parts[1], path+variation+"/")...)
194194
}
195195
return results
196196
}

0 commit comments

Comments
 (0)