File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ func PlatformSearch(req *rpc.PlatformSearchRequest) (*rpc.PlatformSearchResponse
48
48
49
49
searchArgs := strings .Split (searchArgs , " " )
50
50
51
- match := func (toTest []string ) ( bool , error ) {
51
+ match := func (toTest []string ) bool {
52
52
if len (searchArgs ) == 0 {
53
- return true , nil
53
+ return true
54
54
}
55
55
56
56
for _ , t := range toTest {
57
57
if utils .Match (t , searchArgs ) {
58
- return true , nil
58
+ return true
59
59
}
60
60
}
61
- return false , nil
61
+ return false
62
62
}
63
63
64
64
for _ , targetPackage := range pm .Packages {
@@ -91,9 +91,7 @@ func PlatformSearch(req *rpc.PlatformSearchRequest) (*rpc.PlatformSearchResponse
91
91
}
92
92
93
93
// Search
94
- if ok , err := match (toTest ); err != nil {
95
- return nil , err
96
- } else if ! ok {
94
+ if ! match (toTest ) {
97
95
continue
98
96
}
99
97
You can’t perform that action at this time.
0 commit comments