We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 917b018 commit 45f24e9Copy full SHA for 45f24e9
sqlx.go
@@ -64,11 +64,7 @@ func isScannable(t reflect.Type) bool {
64
65
// it's not important that we use the right mapper for this particular object,
66
// we're only concerned on how many exported fields this struct has
67
- m := mapper()
68
- if len(m.TypeMap(t).Index) == 0 {
69
- return true
70
- }
71
- return false
+ return len(mapper().TypeMap(t).Index) == 0
72
}
73
74
// ColScanner is an interface used by MapScan and SliceScan
0 commit comments