mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-24 16:41:30 +02:00
fir error handling and return values (linter complaint)
This commit is contained in:
@@ -33,6 +33,9 @@ func (sc *SqliteStoreConn) GetAccountSettings(ctx context.Context, accountId str
|
||||
}
|
||||
|
||||
a, err := CollectOneRowForSqlite[networkmapdb.Account](rows)
|
||||
if err != nil {
|
||||
return nmdata.AccountSettingsInfo{}, err
|
||||
}
|
||||
|
||||
settingsInfo := nmdata.AccountSettingsInfo{}
|
||||
err = networkmapdb.FromSqlTypesToSharedTypes(reflect.ValueOf(&a), reflect.ValueOf(&settingsInfo))
|
||||
|
||||
@@ -136,11 +136,11 @@ func (s *SqliteStoreConn) GetAllowedUsers(ctx context.Context, accountId string)
|
||||
return nil, nil, nil
|
||||
}
|
||||
func (s *SqliteStoreConn) GetNetworkXIDToPublicIdMap(ctx context.Context, accountId string) (map[string]string, error) {
|
||||
return nil, nil
|
||||
return make(map[string]string), nil
|
||||
}
|
||||
func (s *SqliteStoreConn) GetPrivateServices(ctx context.Context, accountId string) ([]networkmapdb.Service, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (s *SqliteStoreConn) GetProxyTargetedDomainResourceIDs(ctx context.Context, accountId string) (map[string]struct{}, error) {
|
||||
return nil, nil
|
||||
return make(map[string]struct{}), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user