fix style errors
tronnet/workflows: Static Analysis -- Golang / static-go (push) Failing after 14s

This commit is contained in:
alu
2026-08-10 21:33:11 +00:00
parent ee59134778
commit 82c3ba64b7
4 changed files with 21 additions and 24 deletions
+1 -2
View File
@@ -43,10 +43,9 @@ func SaveDB(localDBPath string, db DB) error {
}
func (localdb DB) GetPool(poolname string) (common.Pool, []string, int, error) {
pool := common.Pool{}
pool, ok := localdb.data[poolname]
if !ok {
return pool, []string{}, http.StatusNotFound, fmt.Errorf("Pool %s not in localdb", poolname)
return pool, []string{}, http.StatusNotFound, fmt.Errorf("pool %s not in localdb", poolname)
}
return pool, []string{}, http.StatusOK, nil
}