aboutsummaryrefslogtreecommitdiffstats
path: root/models/error.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-06 23:25:35 +0800
committerUnknwon <u@gogs.io>2015-08-06 23:25:35 +0800
commit9d414d4dd905840911874b879c28cb8178f6f56e (patch)
tree74813012b2bb9bee00119edda09118353af143b7 /models/error.go
parent952c480f4f4bedfaa8089ffb45311d63d0ab3fb4 (diff)
downloadgitea-9d414d4dd905840911874b879c28cb8178f6f56e.tar.gz
gitea-9d414d4dd905840911874b879c28cb8178f6f56e.zip
remove Index field of milestone
Diffstat (limited to 'models/error.go')
-rw-r--r--models/error.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/models/error.go b/models/error.go
index 7851e19407..e52d9b16d9 100644
--- a/models/error.go
+++ b/models/error.go
@@ -233,8 +233,7 @@ func (err ErrRepoNotExist) Error() string {
// \/ \/ \/ \/ \/
type ErrMilestoneNotExist struct {
- ID int64
- Index int64
+ ID int64
}
func IsErrMilestoneNotExist(err error) bool {
@@ -243,5 +242,5 @@ func IsErrMilestoneNotExist(err error) bool {
}
func (err ErrMilestoneNotExist) Error() string {
- return fmt.Sprintf("milestone does not exist [id: %d, index: %d]", err.ID, err.Index)
+ return fmt.Sprintf("milestone does not exist [id: %d]", err.ID)
}