We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2138b3e commit dc137fbCopy full SHA for dc137fb
models/user.go
@@ -828,10 +828,10 @@ func ChangeUserName(u *User, newUserName string) (err error) {
828
if err = x.
829
Where("owner_id=?", u.ID).
830
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 {
+ repo := bean.(*Repository)
+ RemoveAllWithNotice("Delete repository wiki local copy", repo.LocalUncycloPath())
+ return nil
+ }); err != nil {
835
return fmt.Errorf("Delete repository wiki local copy: %v", err)
836
}
837
0 commit comments