mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
simplify cases of strings.Index with strings.Contains
This commit is contained in:
parent
de35d00ba7
commit
a69cc72c9d
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ func expandWildcardVersion(parts [][]string) ([][]string, error) {
|
|||
for _, p := range parts {
|
||||
var newParts []string
|
||||
for _, ap := range p {
|
||||
if strings.Index(ap, "x") != -1 {
|
||||
if strings.Contains(ap, "x") {
|
||||
opStr, vStr, err := splitComparatorVersion(ap)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue