Skip to content

Commit

Permalink
Fix SQL test
Browse files Browse the repository at this point in the history
  • Loading branch information
bcspragu committed Jan 12, 2024
1 parent 72b2143 commit 0c1b96b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions db/sqldb/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ func validateBlobForCreation(b *pacta.Blob) error {
if b.BlobURI == "" {
return fmt.Errorf("blob missing BlobURI")
}
if b.FileType == "" {
return fmt.Errorf("blob missing FileType")
}
if b.FileName == "" {
return fmt.Errorf("blob missing FileName")
}
// A blank FileType is valid, just means we don't recognize the file type yet.
return nil
}

0 comments on commit 0c1b96b

Please sign in to comment.