forked from Elara6331/infinitime
Fix error handling in (*FS).Remove()
This commit is contained in:
parent
65fa04d360
commit
1533865e4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user