Skip to content

Commit 18fd87a

Browse files
committed
Filter out nulls when converting actions to function type decls
1 parent c678490 commit 18fd87a

File tree

1 file changed

+1
-1
lines changed
  • YarnSpinner.LanguageServer/src/Server/Workspace

1 file changed

+1
-1
lines changed

YarnSpinner.LanguageServer/src/Server/Workspace/Project.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ internal void ReloadProjectFromDisk(bool notifyOnComplete = true)
237237

238238
public Yarn.Compiler.CompilationResult CompileProject(bool notifyOnComplete, Yarn.Compiler.CompilationJob.Type compilationType)
239239
{
240-
var functionDeclarations = Functions.Select(f => f.Declaration);
240+
var functionDeclarations = Functions.Select(f => f.Declaration).NonNull();
241241

242242
var files = this.Files.Select(f => new Yarn.Compiler.CompilationJob.File
243243
{

0 commit comments

Comments
 (0)