Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
Define SourceMode default
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Apr 30, 2022
1 parent 13173ef commit 34eb156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ struct CliFileResolver : Luau::FileResolver

std::optional<Luau::SourceCode> readSource(const Luau::ModuleName& name) override
{
Luau::SourceCode::Type sourceType;
Luau::SourceCode::Type sourceType = Luau::SourceCode::Script;
std::optional<std::string> source = std::nullopt;

// If the module name is "-", then read source from stdin
Expand Down

0 comments on commit 34eb156

Please sign in to comment.