add linter, refactor

This commit is contained in:
Maxim Merzhanov committed 2020-03-12 13:12:43 +03:00
1 parent 9d61ec49c3
commit 1fa20f9cda
24 files changed
+145 -71

No files matched your search

+3 -3
View File
@@ -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