Skip to content

Commit a420820

Browse files
iRon7Copilot
andauthored
Update Rules/MissingTryBlock.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e1a8d3f commit a420820

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Rules/MissingTryBlock.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
var missingTryAsts = ast.FindAll(testAst =>
3737
// Normally should be part of a TryStatementAst
3838
testAst is StringConstantExpressionAst stringAst &&
39-
// Catch of finally are reserved keywords and should be bare words
39+
// Catch or finally are reserved keywords and should be bare words
4040
stringAst.StringConstantType == StringConstantType.BareWord &&
4141
(
4242
String.Equals(stringAst.Value, "catch", StringComparison.OrdinalIgnoreCase) ||

0 commit comments

Comments
 (0)