Skip to content

Commit dc137fb

Browse files
committed
Add identation back autochanged by goreturns
1 parent 2138b3e commit dc137fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

models/user.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,10 +828,10 @@ func ChangeUserName(u *User, newUserName string) (err error) {
828828
if err = x.
829829
Where("owner_id=?", u.ID).
830830
Iterate(new(Repository), func(idx int, bean interface{}) error {
831-
repo := bean.(*Repository)
832-
RemoveAllWithNotice("Delete repository wiki local copy", repo.LocalUncycloPath())
833-
return nil
834-
}); err != nil {
831+
repo := bean.(*Repository)
832+
RemoveAllWithNotice("Delete repository wiki local copy", repo.LocalUncycloPath())
833+
return nil
834+
}); err != nil {
835835
return fmt.Errorf("Delete repository wiki local copy: %v", err)
836836
}
837837

0 commit comments

Comments
 (0)