From 9eb58698fa5038b84af323855f556c71bf9790ee Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 25 Aug 2026 13:37:47 +1000 Subject: [PATCH] chore(git-provider): Code style --- src/PowershellModule/Git/Commands/NewGitRepoCommand.cs | 2 -- src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs | 3 +-- src/PowershellModule/Git/GitProvider.cs | 6 +----- src/PowershellModule/Git/GitPsDriveInfo.cs | 1 - 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs b/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs index bccd95f..15678f9 100644 --- a/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/NewGitRepoCommand.cs @@ -1,6 +1,4 @@ using System; -using System.Diagnostics; -using System.IO; using System.Management.Automation; using ModuleCore.Git; diff --git a/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs b/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs index 3394ef3..8a805e1 100644 --- a/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs +++ b/src/PowershellModule/Git/Commands/ShowGitRepoCommand.cs @@ -1,5 +1,4 @@ -using System; -using System.Management.Automation; +using System.Management.Automation; using ModuleCore.Git; namespace PowershellModule.Git.Commands; diff --git a/src/PowershellModule/Git/GitProvider.cs b/src/PowershellModule/Git/GitProvider.cs index e340c2b..7d643ee 100644 --- a/src/PowershellModule/Git/GitProvider.cs +++ b/src/PowershellModule/Git/GitProvider.cs @@ -10,10 +10,6 @@ public class GitProvider : NavigationCmdletProvider { public const string Name = "GitRepo"; - public GitProvider() - { - } - protected override PSDriveInfo NewDrive(PSDriveInfo drive) { // This is a bit of a hack to ensure that no drive is registered with a root location. @@ -81,6 +77,6 @@ public class GitProvider : NavigationCmdletProvider protected override bool IsValidPath(string path) { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } } \ No newline at end of file diff --git a/src/PowershellModule/Git/GitPsDriveInfo.cs b/src/PowershellModule/Git/GitPsDriveInfo.cs index 2566267..7b0d691 100644 --- a/src/PowershellModule/Git/GitPsDriveInfo.cs +++ b/src/PowershellModule/Git/GitPsDriveInfo.cs @@ -7,6 +7,5 @@ public class GitPsDriveInfo : PSDriveInfo protected GitPsDriveInfo(PSDriveInfo driveInfo) : base(driveInfo) { - } } \ No newline at end of file