Skip to content

Commit

Permalink
added err to one of the validator if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
maurafortino committed Nov 14, 2023
1 parent ccfb821 commit 17ab5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primaryHandler.go
Expand Up @@ -584,7 +584,7 @@ func ValidateWRP(logger *zap.Logger) func(http.Handler) http.Handler {
http.StatusBadRequest,
fmt.Sprintf("failed to validate WRP message: %s", err))

Check warning on line 585 in primaryHandler.go

View check run for this annotation

Codecov / codecov/patch

primaryHandler.go#L585

Added line #L585 was not covered by tests
return
} else if errors.Is(err, wrp.ErrorInvalidDestination) || errors.Is(err, wrp.ErrorInvalidSource.Err) {
} else if errors.Is(err, wrp.ErrorInvalidDestination.Err) || errors.Is(err, wrp.ErrorInvalidSource.Err) {
logger.Warn("WRP message validation failures found", zap.Error(err))

Check warning on line 588 in primaryHandler.go

View check run for this annotation

Codecov / codecov/patch

primaryHandler.go#L587-L588

Added lines #L587 - L588 were not covered by tests
}
}
Expand Down

0 comments on commit 17ab5bf

Please sign in to comment.