Move the name check before tx
No point in making a DB query if we know we don't want to be able to delete/update the default endpoint. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
2a3d524a71
commit
8726cb994e
3 changed files with 34 additions and 11 deletions
|
|
@ -30,7 +30,6 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
defaultGithubEndpoint string = "github.com"
|
||||
testUploadBaseURL string = "https://uploads.example.com"
|
||||
testBaseURL string = "https://example.com"
|
||||
testAPIBaseURL string = "https://api.example.com"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue