remove Index field of milestone

This commit is contained in:
Unknwon
2015-08-06 23:25:35 +08:00
parent 952c480f4f
commit 9d414d4dd9
5 changed files with 29 additions and 47 deletions

View File

@ -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)
}