Skip to content

Commit

Permalink
Remove an unreachable line.
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidgecka committed Sep 11, 2014
1 parent 4fd531f commit 07f45c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion equal.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ func (t *T) isNil(obj interface{}) bool {
v := reflect.ValueOf(obj)
switch v.Kind() {
case reflect.Func:
case reflect.Interface:
case reflect.Map:
case reflect.Ptr:
case reflect.Slice:
Expand Down
3 changes: 2 additions & 1 deletion equal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ func TestT_EqualAndNotEqual(t *testing.T) {
// Basic nil value check.
var nilOsFilePtr *os.File
var nilStringPtr *string
var nilInterface interface{} = nilOsFilePtr
var str string
runTest(
[]interface{}{nil, nilOsFilePtr, nilStringPtr},
[]interface{}{nil, nilInterface, nilOsFilePtr, nilStringPtr},
[]interface{}{new(os.File), &str})

// Array check.
Expand Down

0 comments on commit 07f45c8

Please sign in to comment.