diff --git a/CLI/Analyze.cpp b/CLI/Analyze.cpp index 6f7bb5f8..39fc78ef 100644 --- a/CLI/Analyze.cpp +++ b/CLI/Analyze.cpp @@ -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(&error.data)) report(format, humanReadableName.c_str(), error.location, "SyntaxError", syntaxError->message.c_str()); diff --git a/CLI/FileUtils.cpp b/CLI/FileUtils.cpp index d76f36ab..a799368d 100644 --- a/CLI/FileUtils.cpp +++ b/CLI/FileUtils.cpp @@ -265,9 +265,8 @@ std::vector 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])) {