Skip to content

Commit

Permalink
Refactor DataType()
Browse files Browse the repository at this point in the history
  • Loading branch information
asido committed Aug 24, 2019
1 parent ce6287e commit 6fc8c9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ func DataType(data interface{}) string {
return "null"
}

dataType := reflect.TypeOf(data)
kind := dataType.Kind()
kind := reflect.TypeOf(data).Kind()
typeStr, ok := dataTypes[kind]
if !ok {
return "unknown"
Expand Down

0 comments on commit 6fc8c9e

Please sign in to comment.