Skip to content

Commit

Permalink
fix(api): do not check empty size for artifact (#5801)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Apr 26, 2021
1 parent c49ef96 commit 368caaf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sdk/workflow_run_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ func (a *WorkflowRunResultArtifact) IsValid() error {
if a.Name == "" {
return WrapError(ErrInvalidData, "missing artifact name")
}
if a.Size == 0 {
return WrapError(ErrInvalidData, "missing artifact size")
}
if a.MD5 == "" {
return WrapError(ErrInvalidData, "missing md5Sum")
}
Expand All @@ -79,9 +76,6 @@ func (a *WorkflowRunResultCoverage) IsValid() error {
if a.Name == "" {
return WrapError(ErrInvalidData, "missing file name")
}
if a.Size == 0 {
return WrapError(ErrInvalidData, "missing file size")
}
if a.MD5 == "" {
return WrapError(ErrInvalidData, "missing md5Sum")
}
Expand Down

0 comments on commit 368caaf

Please sign in to comment.