Skip to content

Commit 7f81fbb

Browse files
committed
lose commit file
1 parent f1a446f commit 7f81fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeFormatLib/src/LuaCodeFormat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ std::string LuaCodeFormat::Reformat(const std::string& uri, std::string&& text,
9090
}
9191
parser->BuildAstWithComment();
9292

93-
if (!parser->GetErrors().empty())
93+
if (parser->HasError())
9494
{
9595
return "";
9696
}
@@ -110,7 +110,7 @@ std::string LuaCodeFormat::RangeFormat(const std::string& uri, LuaFormatRange& r
110110
}
111111
parser->BuildAstWithComment();
112112

113-
if (!parser->GetErrors().empty())
113+
if (parser->HasError())
114114
{
115115
return "";
116116
}

0 commit comments

Comments
 (0)