add linter, refactor
This commit is contained in:
1 parent
9d61ec49c3
commit
1fa20f9cda
24 files changed
+145
-71
No files matched your search
@@ -77,11 +77,11 @@ func (c *config) CreateUpdateConfig(config domain.CreateUpdateConfigRequest) (*d
|
||||
err := PerformSyncApplyWithError(command, "UpsertConfigCommand", &response)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
} else if response.Config != nil {
|
||||
return response.Config, nil
|
||||
} else {
|
||||
} else if response.ErrorDetails != nil {
|
||||
return nil, utils.CreateValidationErrorDetails(codes.InvalidArgument, utils.ValidationError, response.ErrorDetails)
|
||||
}
|
||||
|
||||
return response.Config, nil
|
||||
}
|
||||
|
||||
// MarkConfigAsActive godoc
|
||||
|
||||
Reference in new issue
Block a user