mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-25 03:57:13 +08:00
Fix lint errors (#2547)
This commit is contained in:
@ -119,9 +119,5 @@ func addUnitsToTables(x *xorm.Engine) error {
|
||||
}
|
||||
}
|
||||
|
||||
if err := sess.Commit(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return sess.Commit()
|
||||
}
|
||||
|
||||
@ -51,8 +51,5 @@ func useNewPublickeyFormat(x *xorm.Engine) error {
|
||||
}
|
||||
|
||||
f.Close()
|
||||
if err = os.Rename(tmpPath, fpath); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return os.Rename(tmpPath, fpath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user