Skip to content

Commit

Permalink
Lint requires else if cond, rather than else {if cond
Browse files Browse the repository at this point in the history
  • Loading branch information
staylor14 committed Mar 3, 2020
1 parent 942e5fa commit 4f0c3a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions api/cloudcontroller/jsonry/unmarshal.go
Expand Up @@ -111,11 +111,9 @@ func setValue(fieldName string, store reflect.Value, value interface{}) error {
store.Set(n)
return nil
}
} else {
if store.Type().AssignableTo(vv.Type()) {
store.Set(vv)
return nil
}
} else if store.Type().AssignableTo(vv.Type()) {
store.Set(vv)
return nil
}

return fmt.Errorf(
Expand Down

0 comments on commit 4f0c3a2

Please sign in to comment.