Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1048 from irisnet/kaifei-bianjie-patch-1
Browse files Browse the repository at this point in the history
R4R: fix nil pointer reference
  • Loading branch information
wenwu-bianjie authored Sep 19, 2019
2 parents cc27817 + cebfe83 commit c0982ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/service/service_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ func buildValidators() []document.Validator {
}

for _, v := range res {
if validator, err := buildValidator(v); err != nil {
if validator, err := buildValidator(v); err == nil {
result = append(result, validator)
} else {
logger.Error("build validator fail", logger.String("err", err.Error()))
Expand Down

0 comments on commit c0982ba

Please sign in to comment.