add comment (#2163)

* add comment

* typo
This commit is contained in:
RikiyaFujii 2018-11-03 22:55:52 +09:00 committed by Jinzhu
parent 742154be9a
commit 50c61291de
1 changed files with 1 additions and 0 deletions

View File

@ -368,6 +368,7 @@ func (association *Association) saveAssociations(values ...interface{}) *Associa
return association return association
} }
// setErr set error when the error is not nil. And return Association.
func (association *Association) setErr(err error) *Association { func (association *Association) setErr(err error) *Association {
if err != nil { if err != nil {
association.Error = err association.Error = err