From c345b0f54145e67192518801153896a8a57e2840 Mon Sep 17 00:00:00 2001 From: MacroModel <33865334+MacroModel@users.noreply.github.com> Date: Tue, 28 Oct 2025 18:10:24 +0800 Subject: [PATCH] Simplify symlink size check Remove unnecessary check for zero symlink size. --- include/fast_io_hosted/filesystem/posix_at.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/fast_io_hosted/filesystem/posix_at.h b/include/fast_io_hosted/filesystem/posix_at.h index 3d077620..04967922 100644 --- a/include/fast_io_hosted/filesystem/posix_at.h +++ b/include/fast_io_hosted/filesystem/posix_at.h @@ -487,11 +487,6 @@ inline ::fast_io::details::basic_ct_string posix_readlinkat_impl(int auto const symlink_size{static_cast<::std::size_t>(buf.st_size)}; - if (symlink_size == 0u) - { - return {}; - } - if constexpr (::std::same_as) { ::fast_io::details::basic_ct_string result(symlink_size);