Skip to content

Commit 934e40e

Browse files
authored
Merge pull request #209 from dentiny/hjiang/fix-file-existence
Fix file existence for httpfs
2 parents f8ec2a2 + a99b2df commit 934e40e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/httpfs.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,10 +659,7 @@ string HTTPFileSystem::GetVersionTag(FileHandle &handle) {
659659
bool HTTPFileSystem::FileExists(const string &filename, optional_ptr<FileOpener> opener) {
660660
try {
661661
auto handle = OpenFile(filename, FileFlags::FILE_FLAGS_READ, opener);
662-
auto &sfh = handle->Cast<HTTPFileHandle>();
663-
if (sfh.length == 0) {
664-
return false;
665-
}
662+
(void)handle; // suppress warning
666663
return true;
667664
} catch (...) {
668665
return false;

0 commit comments

Comments
 (0)