Skip to content

Commit e688323

Browse files
authored
Simplify symlink size check (#1206)
Remove unnecessary check for zero symlink size.
1 parent 1bd8fb8 commit e688323

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/fast_io_hosted/filesystem/posix_at.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,6 @@ inline ::fast_io::details::basic_ct_string<char_type> posix_readlinkat_impl(int
487487

488488
auto const symlink_size{static_cast<::std::size_t>(buf.st_size)};
489489

490-
if (symlink_size == 0u)
491-
{
492-
return {};
493-
}
494-
495490
if constexpr (::std::same_as<char_type, char>)
496491
{
497492
::fast_io::details::basic_ct_string<char> result(symlink_size);

0 commit comments

Comments
 (0)