fix style errors
tronnet/workflows: Static Analysis -- Golang / static-go (push) Successful in 44s

This commit is contained in:
alu committed 2026-08-10 21:33:11 +00:00
1 parent ee59134778
commit 82c3ba64b7
4 files changed
+21 -24

No files matched your search

+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
}