We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee88050 commit a35a770Copy full SHA for a35a770
store.go
@@ -81,9 +81,12 @@ func (c *controller) getStores() []datastore.DataStore {
81
82
func (c *controller) getNetworkFromStore(nid string) (*network, error) {
83
ns, err := c.getNetworksFromStore()
84
+ if err != nil {
85
+ return nil, err
86
+ }
87
for _, n := range ns {
88
if n.id == nid {
- return n, err
89
+ return n, nil
90
}
91
92
return nil, fmt.Errorf("network %s not found", nid)
0 commit comments