Skip to content

Commit

Permalink
fix: should return value after snssai comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
yccodr committed Sep 18, 2024
1 parent 74f5caa commit f2ae48c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ func CheckSupportedSnssaiInTa(snssai models.Snssai, tai models.Tai) bool {
for _, taConfig := range factory.NssfConfig.Configuration.TaList {
if reflect.DeepEqual(*taConfig.Tai, tai) {
for _, supportedSnssai := range taConfig.SupportedSnssaiList {
SnssaiEqualFold(supportedSnssai, snssai)
if SnssaiEqualFold(supportedSnssai, snssai) {
return true
}
}
return false
}
Expand Down Expand Up @@ -237,7 +239,9 @@ func CheckStandardSnssai(snssai models.Snssai) bool {
// Check whether the NSSAI contains the specific S-NSSAI
func CheckSnssaiInNssai(targetSnssai models.Snssai, nssai []models.ExtSnssai) bool {
for _, snssai := range nssai {
SnssaiEqualFold(snssai, targetSnssai)
if SnssaiEqualFold(snssai, targetSnssai) {
return true
}
}
return false
}
Expand Down

0 comments on commit f2ae48c

Please sign in to comment.