Skip to content

Commit 3a62693

Browse files
committed
Add braces for if condition
1 parent f949885 commit 3a62693

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rules/AvoidUsingDeprecatedManifestFields.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ public class AvoidUsingDeprecatedManifestFields : IScriptRule
3434
/// <returns>A List of diagnostic results of this rule</returns>
3535
public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
3636
{
37-
if (ast == null) throw new ArgumentNullException(Strings.NullAstErrorMessage);
37+
if (ast == null)
38+
{
39+
throw new ArgumentNullException(Strings.NullAstErrorMessage);
40+
}
3841

3942
if (String.Equals(System.IO.Path.GetExtension(fileName), ".psd1", StringComparison.OrdinalIgnoreCase))
4043
{

0 commit comments

Comments
 (0)