From e3a6bd308dbbc130949e4457058ded7cf67bd03a Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Thu, 5 May 2022 12:39:16 -0700 Subject: [PATCH] Fix error handling in (*FS).Remove() --- blefs/basic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blefs/basic.go b/blefs/basic.go index f31293c..3097d9e 100644 --- a/blefs/basic.go +++ b/blefs/basic.go @@ -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