WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0abeb30

Browse files
committed
Update handling of empty AST passed to AnalyzeScript
1 parent e4372eb commit 0abeb30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/UseSingleValueFromPipelineParameter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
3636
{
3737
if (ast == null)
3838
{
39-
yield break;
39+
throw new ArgumentNullException(Strings.NullAstErrorMessage);
4040
}
4141
// Find all param blocks that have a Parameter attribute with
4242
// ValueFromPipeline set to true.

0 commit comments

Comments
 (0)