makefile: added megacheck

This commit is contained in:
Michał Matczuk
2018-05-22 14:47:43 +02:00
parent 5526e60464
commit cca99d4a42
5 changed files with 30 additions and 17 deletions

View File

@@ -55,10 +55,8 @@ func isScannable(t reflect.Type) bool {
// it's not important that we use the right mapper for this particular object,
// we're only concerned on how many exported fields this struct has
m := DefaultMapper
if len(m.TypeMap(t).Index) == 0 {
return true
}
return false
return len(m.TypeMap(t).Index) == 0
}
// fieldsByName fills a values interface with fields from the passed value based