Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
syyongx committed Dec 15, 2018
1 parent 179c3f1 commit b5dd8dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php.go
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ func Empty(val interface{}) bool {
func IsNumeric(val interface{}) bool {
switch val.(type) {
case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64:
return true
return true
case float32, float64, complex64, complex128:
return true
case string:
Expand Down
2 changes: 1 addition & 1 deletion php_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func TestVariable(t *testing.T) {
equal(t, false, Empty([1]string{}))
equal(t, true, Empty([]int{}))

var tIsNumeric bool
var tIsNumeric bool

tIsNumeric = IsNumeric("-0xaF")
equal(t, true, tIsNumeric)
Expand Down

0 comments on commit b5dd8dd

Please sign in to comment.