Skip to content

Commit c4065e7

Browse files
author
Kapil Borle
committed
Rename and make static a method in Helper
1 parent 13c5c3f commit c4065e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Engine/Helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public PSModuleInfo GetModuleManifest(string filePath, out IEnumerable<ErrorReco
274274
/// </summary>
275275
/// <param name="errorRecord"></param>
276276
/// <returns>Returns a boolean value indicating the presence of MissingMemberException</returns>
277-
public bool IsMissingMemberException(ErrorRecord errorRecord)
277+
public static bool IsMissingManifestMemberException(ErrorRecord errorRecord)
278278
{
279279
return errorRecord.CategoryInfo != null
280280
&& errorRecord.CategoryInfo.Category == ErrorCategory.ResourceUnavailable

Rules/MissingModuleManifestField.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
4444
{
4545
foreach (var errorRecord in errorRecords)
4646
{
47-
if (Helper.Instance.IsMissingMemberException(errorRecord))
47+
if (Helper.IsMissingManifestMemberException(errorRecord))
4848
{
4949
System.Diagnostics.Debug.Assert(errorRecord.Exception != null && !String.IsNullOrWhiteSpace(errorRecord.Exception.Message), Strings.NullErrorMessage);
5050
yield return

0 commit comments

Comments
 (0)