Skip to content

Commit

Permalink
fix errors.Is comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-laterman committed Jun 17, 2024
1 parent 361b3a9 commit 1eeccdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ func safelyStoreAgentInfo(s saver, reader io.Reader) error {
for i := 0; i <= maxRetriesstoreAgentInfo; i++ {
backExp.Wait()
err = storeAgentInfo(s, reader)
if stderror.Is(err, filelock.ErrAppAlreadyRunning) {
if !stderror.Is(err, filelock.ErrAppAlreadyRunning) {
break
}
}
Expand Down

0 comments on commit 1eeccdf

Please sign in to comment.