Skip to content

Commit

Permalink
Remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
ale8k committed Dec 6, 2021
1 parent d422021 commit 131942c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions slice_searching/linear_search/linear_search.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package linearsearch

import (
"fmt"
"reflect"
)

Expand All @@ -12,8 +11,6 @@ func PrimitiveSearch(param interface{}, slice interface{}) int {
sliceKind := sliceType.Kind()
sliceVal := reflect.ValueOf(slice)

fmt.Println(sliceType, sliceKind, sliceVal)

if sliceKind == reflect.Slice && sliceVal.Len() > 0 {
for i := 0; i < sliceVal.Len(); i++ {
match := reflect.DeepEqual(param, sliceVal.Index(i).Interface())
Expand Down

0 comments on commit 131942c

Please sign in to comment.