add comment

This commit is contained in:
RikiyaFujii 2018-11-03 21:08:48 +09:00
parent 48a20a6e9f
commit bf3e312343

View File

@ -367,6 +367,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