Browse Source

storage: add missing return for unsafeAddWatching

Xiang Li 10 years ago
parent
commit
9f908ce67f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      storage/watchable_store.go

+ 2 - 1
storage/watchable_store.go

@@ -385,8 +385,9 @@ func unsafeAddWatching(synced *map[string]map[*watching]struct{}, k string, wa *
 		} else {
 			v[wa] = struct{}{}
 		}
-
+		return nil
 	}
+
 	mp[k] = make(map[*watching]struct{})
 	mp[k][wa] = struct{}{}
 	return nil