return err
}
- if err = sess.Commit(); err != nil {
- return err
- }
-
- return nil
+ return sess.Commit()
}
// CommitVerification represents a commit validation of signature
return err
}
- if err := setNotificationStatusReadIfUnread(x, userID, issue.ID); err != nil {
- return err
- }
-
- return nil
+ return setNotificationStatusReadIfUnread(x, userID, issue.ID)
}
func updateIssueCols(e Engine, issue *Issue, cols ...string) error {
}
if ok, _ := c.Extension("AUTH"); ok {
- if err = c.Auth(a); err != nil {
- return err
- }
- return nil
+ return c.Auth(a)
}
return ErrUnsupportedLoginType
}
}
}
- if err := sess.Commit(); err != nil {
- return err
- }
-
- return nil
+ return sess.Commit()
}
}
f.Close()
- if err = os.Rename(tmpPath, fpath); err != nil {
- return err
- }
- return nil
+ return os.Rename(tmpPath, fpath)
}
}
}
- if err = sess.Commit(); err != nil {
- return err
- }
-
- return nil
+ return sess.Commit()
}
func deleteOrg(e *xorm.Session, u *User) error {
defer f.Close()
}
- if err = os.Rename(tmpPath, fPath); err != nil {
- return err
- }
-
- return nil
+ return os.Rename(tmpPath, fPath)
}
// ________ .__ ____ __.
return errHashMismatch
}
- if err := os.Rename(tmpPath, path); err != nil {
- return err
- }
- return nil
+ return os.Rename(tmpPath, path)
}
// Exists returns true if the object exists in the content store.
return err
}
w.mw.SetFd(fd)
- if err = w.initFd(); err != nil {
- return err
- }
- return nil
+ return w.initFd()
}
func (w *FileLogWriter) docheck(size int) {