From 4d30dbc2b308cfa9daca77f64539949489994d3d Mon Sep 17 00:00:00 2001 From: John Rowley Date: Fri, 11 Apr 2025 11:22:47 -0700 Subject: [PATCH] fix: ensure fs error is checked --- fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs.go b/fs.go index 0752e1d..7cb3027 100644 --- a/fs.go +++ b/fs.go @@ -43,7 +43,7 @@ func (f BootFS) IsSupported() bool { func (f BootFS) Validate() error { if !f.IsSupported() { - fmt.Errorf("invalid boot filesystem: %s valid filesystems are: fat32, ext4", f) + return fmt.Errorf("invalid boot filesystem: %s valid filesystems are: fat32, ext4", f) } return nil }