Skip to content

Commit 5025628

Browse files
committed
fix: ensure fs error is checked
1 parent c15ce00 commit 5025628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (f BootFS) IsSupported() bool {
4343

4444
func (f BootFS) Validate() error {
4545
if !f.IsSupported() {
46-
fmt.Errorf("invalid boot filesystem: %s valid filesystems are: fat32, ext4", f)
46+
return fmt.Errorf("invalid boot filesystem: %s valid filesystems are: fat32, ext4", f)
4747
}
4848
return nil
4949
}

0 commit comments

Comments
 (0)