Fix error handling in (*FS).Remove()

This commit is contained in:
Elara 2022-05-05 12:39:16 -07:00
parent 65fa04d360
commit 1533865e4c
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ func (blefs *FS) Remove(path string) error {
// Read status byte
return decode(data, &status)
})
if status == FSStatusError {
if status != FSStatusOk {
// If status is not ok, return error
return FSError{status}
}