8000 Enable nullable: System.Management.Automation.Provider.ICmdletProvide… · PowerShell/PowerShell@94aa68d · GitHub
[go: up one dir, main page]

Skip to content

Commit 94aa68d

Browse files
authored
Enable nullable: System.Management.Automation.Provider.ICmdletProviderSupportsHelp (#14150)
1 parent 77f25bf commit 94aa68d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/System.Management.Automation/namespaces/ProviderBase.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515

1616
namespace System.Management.Automation.Provider
1717
{
18+
1819
/// <summary>
1920
/// This interface needs to be implemented by providers that want users to see
2021
/// provider-specific help.
2122
/// </summary>
23+
#nullable enable
2224
public interface ICmdletProviderSupportsHelp
2325
{
2426
/// <summary>
@@ -37,7 +39,7 @@ public interface ICmdletProviderSupportsHelp
3739
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Maml", Justification = "Maml is an acronym.")]
3840
string GetHelpMaml(string helpItemName, string path);
3941
}
40-
42+
#nullable restore
4143
#region CmdletProvider
4244

4345
/// <summary>
@@ -1825,7 +1827,7 @@ private PSObject WrapOutputInPSObject(
18251827
{
18261828
try
18271829
{
1828-
// Use LStat because if you get a link, you want the information about the
1830+
// Use LStat because if you get a link, you want the information about the
18291831
// link, not the file.
18301832
var commonStat = Platform.Unix.GetLStat(path);
18311833
result.AddOrSetProperty("UnixStat", commonStat);

0 commit comments

Comments
 (0)
0