Skip to content

Commit 50c6129

Browse files
RikiyaFujiijinzhu
authored andcommittedNov 3, 2018
add comment (go-gorm#2163)
* add comment * typo
1 parent 742154b commit 50c6129

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎association.go

+1
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ func (association *Association) saveAssociations(values ...interface{}) *Associa
368368
return association
369369
}
370370

371+
// setErr set error when the error is not nil. And return Association.
371372
func (association *Association) setErr(err error) *Association {
372373
if err != nil {
373374
association.Error = err

0 commit comments

Comments
 (0)
Please sign in to comment.