diff options
Diffstat (limited to 'cover.go')
| -rw-r--r-- | cover.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -28,6 +28,14 @@ const ( CoverStatusError CoverValidationStatus = "ERROR" // file is invalid, list of errors is included in the response ) +func (s CoverValidationStatus) IsFinal() bool { + switch s { + case CoverStatusNormalized, CoverStatusError: + return true + } + return false +} + // coverDimensionsReq is the json body of a /cover-dimensions/ request. type coverDimensionsReq struct { PkgId PkgId `json:"pod_package_id"` |