Fix/simplify some if statement comparisons

This commit is contained in:
Tim Wojtulewicz 2023-01-14 16:30:53 -07:00
parent 103b381874
commit 5bfd84a903
7 changed files with 13 additions and 12 deletions

View file

@ -148,7 +148,7 @@ void String::Set(std::string_view str)
{
Reset();
if ( str.data() )
if ( ! str.empty() )
{
n = str.size();
b = new u_char[n + 1];