From bf3e31234378008344dfc229cf8141d0cb4ccc9c Mon Sep 17 00:00:00 2001 From: RikiyaFujii Date: Sat, 3 Nov 2018 21:08:48 +0900 Subject: [PATCH] add comment --- association.go | 1 + 1 file changed, 1 insertion(+) diff --git a/association.go b/association.go index 8c6d9864..e9b170f4 100644 --- a/association.go +++ b/association.go @@ -367,6 +367,7 @@ func (association *Association) saveAssociations(values ...interface{}) *Associa return association } +// seterr set error when the error is not nil. And return Association. func (association *Association) setErr(err error) *Association { if err != nil { association.Error = err