mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Remove unreachable code below FMT_THROW
(cherry picked from commit c8c9973669
)
This commit is contained in:
committed by
Jonathan Müller
parent
6f27f98103
commit
e3de93298b
@@ -2624,7 +2624,6 @@ void BasicWriter<Char>::write_str(
|
|||||||
if (str_size == 0) {
|
if (str_size == 0) {
|
||||||
if (!str_value) {
|
if (!str_value) {
|
||||||
FMT_THROW(FormatError("string pointer is null"));
|
FMT_THROW(FormatError("string pointer is null"));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::size_t precision = static_cast<std::size_t>(spec.precision_);
|
std::size_t precision = static_cast<std::size_t>(spec.precision_);
|
||||||
|
Reference in New Issue
Block a user