Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmarica committed Jan 25, 2022
1 parent f77d1e9 commit a609592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CLI/Analyze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void report(ReportFormat format, const char* name, const Luau::Location&

static void reportError(Luau::Frontend& frontend, ReportFormat format, const Luau::TypeError& error)
{
std::string humanReadableName { frontend.fileResolver->getHumanReadableModuleName(error.moduleName) };
std::string humanReadableName = frontend.fileResolver->getHumanReadableModuleName(error.moduleName);

if (const Luau::SyntaxError* syntaxError = Luau::get_if<Luau::SyntaxError>(&error.data))
report(format, humanReadableName.c_str(), error.location, "SyntaxError", syntaxError->message.c_str());
Expand Down
3 changes: 1 addition & 2 deletions CLI/FileUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,8 @@ std::vector<std::string> getSourceFiles(int argc, char** argv)
{
// Treat '-' as a special file whose source is read from stdin
// All other arguments that start with '-' are skipped
if (argv[i][0] == '-' && argv[i][1] != '\0') {
if (argv[i][0] == '-' && argv[i][1] != '\0')
continue;
}

if (isDirectory(argv[i]))
{
Expand Down

0 comments on commit a609592

Please sign in to comment.