Skip to content

Commit

Permalink
Merge pull request #59 from PCD-01/patch-2
Browse files Browse the repository at this point in the history
fix temporary variable usage error
  • Loading branch information
lycorisor authored Nov 3, 2022
2 parents ac398e6 + f8e5987 commit 8404204
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 8404204

Please sign in to comment.