Skip to content

Commit

Permalink
Merge pull request #759 from vdwees/main
Browse files Browse the repository at this point in the history
fix: regression in examples introduced by #753
  • Loading branch information
magiconair authored Dec 16, 2024
2 parents 520ee74 + 74f623c commit 74c8438
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/datetime/datetime.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
log.Fatal(err)
}
ep, err := opcua.SelectEndpoint(endpoints, *policy, ua.MessageSecurityModeFromString(*mode))
if err == nil {
if err != nil {
log.Fatal(err)
}

Expand Down
2 changes: 1 addition & 1 deletion examples/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
}

ep, err := opcua.SelectEndpoint(endpoints, *policy, ua.MessageSecurityModeFromString(*mode))
if err == nil {
if err != nil {
log.Fatal(err)
}

Expand Down
2 changes: 1 addition & 1 deletion examples/subscribe/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
log.Fatal(err)
}
ep, err := opcua.SelectEndpoint(endpoints, *policy, ua.MessageSecurityModeFromString(*mode))
if err == nil {
if err != nil {
log.Fatal(err)
}
ep.EndpointURL = *endpoint
Expand Down
2 changes: 1 addition & 1 deletion examples/trigger/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
log.Fatal(err)
}
ep, err := opcua.SelectEndpoint(endpoints, *policy, ua.MessageSecurityModeFromString(*mode))
if err == nil {
if err != nil {
log.Fatal(err)
}

Expand Down
2 changes: 1 addition & 1 deletion examples/udt/udt.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {
log.Fatal(err)
}
ep, err := opcua.SelectEndpoint(endpoints, *policy, ua.MessageSecurityModeFromString(*mode))
if err == nil {
if err != nil {
log.Fatal(err)
}

Expand Down

0 comments on commit 74c8438

Please sign in to comment.