aboutsummaryrefslogtreecommitdiff
path: root/internal/db/errors/user.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-04-17 10:14:18 +0800
committerGitHub <noreply@github.com>2020-04-17 10:14:18 +0800
commitfa497b16332c24bc4d9e788c64bda94e3c1499a7 (patch)
tree1dcf1b13f702a07dc30da791bf0e76e1ffba4027 /internal/db/errors/user.go
parente131a4564680a3257a2d4795af7669e4260b33b9 (diff)
db: add tests for repos (#6112)
* Add Repos.create method * Fix repo name error handling * Fix all compile errors * Update github.com/go-macaron/captcha to fix http issue * Add repos tests
Diffstat (limited to 'internal/db/errors/user.go')
-rw-r--r--internal/db/errors/user.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/internal/db/errors/user.go b/internal/db/errors/user.go
index 54a6ad50..09572af9 100644
--- a/internal/db/errors/user.go
+++ b/internal/db/errors/user.go
@@ -8,17 +8,6 @@ import (
"fmt"
)
-type EmptyName struct{}
-
-func IsEmptyName(err error) bool {
- _, ok := err.(EmptyName)
- return ok
-}
-
-func (err EmptyName) Error() string {
- return "empty name"
-}
-
type UserNotKeyOwner struct {
KeyID int64
}