fix HasPrefix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6648d69196
commit
6c6b29cc1f
|
@ -82,7 +82,7 @@ func getModifiedApi(api ApiList, modifiedFileList []string) ApiList {
|
||||||
tempIndex := NewSet()
|
tempIndex := NewSet()
|
||||||
for i, a := range api {
|
for i, a := range api {
|
||||||
for _, file := range modifiedFileList {
|
for _, file := range modifiedFileList {
|
||||||
if strings.HasSuffix(file, a.Root) {
|
if strings.HasPrefix(file, a.Root) {
|
||||||
tempIndex.Add(i)
|
tempIndex.Add(i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ func getModifiedService(service ServiceList, modifiedFileList []string) ServiceL
|
||||||
tempIndex := NewSet()
|
tempIndex := NewSet()
|
||||||
for i, s := range service {
|
for i, s := range service {
|
||||||
for _, file := range modifiedFileList {
|
for _, file := range modifiedFileList {
|
||||||
if strings.HasSuffix(file, s.Root) {
|
if strings.HasPrefix(file, s.Root) {
|
||||||
tempIndex.Add(i)
|
tempIndex.Add(i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue