Skip to content

Commit

Permalink
Update factory.go
Browse files Browse the repository at this point in the history
  • Loading branch information
PCD-01 authored Nov 3, 2022
1 parent ac398e6 commit f8e5987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func StartNewService(s *config.ConfigProxyService) {
log.Panic(color.HiRedString("Service %s: ListTags can't be null when access control enabled.", s.Name))
}
for _, tag := range s.IPAccess.ListTags {
if common.GetSecond[error](access.GetTargetList(tag)) != nil {
if err = common.GetSecond[error](access.GetTargetList(tag)); err != nil {
log.Panic(color.HiRedString("Service %s: %s", s.Name, err.Error()))
}
}
Expand All @@ -78,7 +78,7 @@ func StartNewService(s *config.ConfigProxyService) {
log.Panic(color.HiRedString("Service %s: ListTags can't be null when access control enabled.", s.Name))
}
for _, tag := range s.Minecraft.NameAccess.ListTags {
if common.GetSecond[error](access.GetTargetList(tag)) != nil {
if err = common.GetSecond[error](access.GetTargetList(tag)); err != nil {
log.Panic(color.HiRedString("Service %s: %s", s.Name, err.Error()))
}
}
Expand Down

0 comments on commit f8e5987

Please sign in to comment.