diff options
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/models/error.go b/models/error.go index 7851e194..e52d9b16 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) } |