Formatting code with gomt

This commit is contained in:
joe-at-startupmedia 2017-10-10 18:20:56 +00:00 committed by Jinzhu
parent 9235b47ea2
commit 9f409820df
1 changed files with 25 additions and 25 deletions

View File

@ -22,7 +22,7 @@ func saveFieldAsAssociation(scope *Scope, field *Field) (bool, *Relationship) {
func saveBeforeAssociationsCallback(scope *Scope) {
for _, field := range scope.Fields() {
ok, relationship := saveFieldAsAssociation(scope, field);
ok, relationship := saveFieldAsAssociation(scope, field)
if relationship != nil && relationship.Kind == "belongs_to" {
fieldValue := field.Field.Addr().Interface()
if ok && scope.shouldSaveAssociations() {