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

This commit is contained in:
Elara Musayelyan 2022-05-05 12:39:16 -07:00
parent 2c2d854929
commit e3a6bd308d

View file

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