Skip to content

Commit def225d

Browse files
committed
fix: lint S1005, S1009
1 parent cbe305f commit def225d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/influxd/upgrade/generate_security_script.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ func (h *securityScriptHelper) checkDbBuckets(meta *meta.Client, databases map[s
237237
if h.skipDb(database) { // same check is done in upgradeDatabases()
238238
continue
239239
}
240-
ids, _ := databases[database]
241-
if ids == nil || len(ids) == 0 {
240+
ids := databases[database]
241+
if len(ids) == 0 {
242242
h.log.Warn(fmt.Sprintf("warning: no buckets for database [%s] exist in 2.x\n", database))
243243
ok = false
244244
}

0 commit comments

Comments
 (0)