Skip to content

Commit 2451ae0

Browse files
committed
make File::operator bool(void) redirect to isOpen()
1 parent d533874 commit 2451ae0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,7 @@ void File::_close(void)
297297

298298
File::operator bool (void)
299299
{
300-
bool ret = false;
301-
this->DoNotCallFromOutsideClass_LockFilesystem();
302-
ret = this->_isOpen();
303-
this->DoNotCallFromOutsideClass_UnlockFilesystem();
304-
return ret;
300+
return isOpen();
305301
}
306302
bool File::isOpen(void)
307303
{

0 commit comments

Comments
 (0)