linter fixes

This commit is contained in:
ston1th 2021-11-07 13:30:22 +01:00
commit df5babf6c8
15 changed files with 49 additions and 55 deletions

View file

@ -83,7 +83,7 @@ func (db *DB) GetCIDR(name string) (cidr string, err error) {
func (db *DB) GetLBs(cl string) (lbs map[string][]byte, err error) {
lbs = make(map[string][]byte)
if cl != "" {
cl = cl + "/"
cl += "/"
}
m, err := db.kv.GetPrefix(lbPrefix + cl)
if err != nil {