Skip to content

Commit d251a5f

Browse files
authored
fix isSuccess return type in validator (#472)
1 parent ce4e0f7 commit d251a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Sbom.Api/SBOMValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public async Task<SBOMValidationResult> ValidateSbomAsync(
107107
await recorder.FinalizeAndLogTelemetryAsync();
108108

109109
var errors = recorder.Errors.Select(error => error.ToEntityError()).ToList();
110-
return new SBOMValidationResult(errors.Any(), errors);
110+
return new SBOMValidationResult(!errors.Any(), errors);
111111
}
112112

113113
private InputConfiguration ValidateConfig(InputConfiguration config)

0 commit comments

Comments
 (0)