Skip to content

Commit c454de1

Browse files
committed
use size() as before
1 parent bdae773 commit c454de1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

library/Core.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,10 +794,7 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, s
794794
{
795795
for (const auto& p : parts)
796796
{
797-
if (p.empty())
798-
continue;
799-
800-
if (p[0] == '-')
797+
if (p.size() && p[0] == '-')
801798
{
802799
if (p.find('a') != std::string::npos)
803800
all = true;

0 commit comments

Comments
 (0)