From 3232dd01bc0143ef2a683c1056d2dae18f42204d Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 10 May 2020 20:49:29 -0400 Subject: [PATCH] Minor code cleanups --- .../Components/Chat/Commands/CommandFactory.cs | 2 +- .../Components/Chat/Commands/RevisionCommand.cs | 9 +-------- .../Components/StaticFiles/IConfiguration.cs | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Chat/Commands/CommandFactory.cs b/src/Tgstation.Server.Host/Components/Chat/Commands/CommandFactory.cs index 64c20d773f..21477df61f 100644 --- a/src/Tgstation.Server.Host/Components/Chat/Commands/CommandFactory.cs +++ b/src/Tgstation.Server.Host/Components/Chat/Commands/CommandFactory.cs @@ -83,7 +83,7 @@ namespace Tgstation.Server.Host.Components.Chat.Commands { new VersionCommand(assemblyInformationProvider), new ByondCommand(byondManager, watchdog), - new RevisionCommand(watchdog, repositoryManager, instance), + new RevisionCommand(watchdog, repositoryManager), new PullRequestsCommand(watchdog, repositoryManager, databaseContextFactory, instance), new KekCommand() }; diff --git a/src/Tgstation.Server.Host/Components/Chat/Commands/RevisionCommand.cs b/src/Tgstation.Server.Host/Components/Chat/Commands/RevisionCommand.cs index c775a36d3b..107c3c2d54 100644 --- a/src/Tgstation.Server.Host/Components/Chat/Commands/RevisionCommand.cs +++ b/src/Tgstation.Server.Host/Components/Chat/Commands/RevisionCommand.cs @@ -32,22 +32,15 @@ namespace Tgstation.Server.Host.Components.Chat.Commands /// readonly IRepositoryManager repositoryManager; - /// - /// The for the - /// - readonly Models.Instance instance; - /// /// Construct a /// /// The value of /// The value of - /// The value of - public RevisionCommand(IWatchdog watchdog, IRepositoryManager repositoryManager, Models.Instance instance) + public RevisionCommand(IWatchdog watchdog, IRepositoryManager repositoryManager) { this.watchdog = watchdog ?? throw new ArgumentNullException(nameof(watchdog)); this.repositoryManager = repositoryManager ?? throw new ArgumentNullException(nameof(repositoryManager)); - this.instance = instance ?? throw new ArgumentNullException(nameof(instance)); } /// diff --git a/src/Tgstation.Server.Host/Components/StaticFiles/IConfiguration.cs b/src/Tgstation.Server.Host/Components/StaticFiles/IConfiguration.cs index 7c6ec4298b..ad88be4917 100644 --- a/src/Tgstation.Server.Host/Components/StaticFiles/IConfiguration.cs +++ b/src/Tgstation.Server.Host/Components/StaticFiles/IConfiguration.cs @@ -45,7 +45,7 @@ namespace Tgstation.Server.Host.Components.StaticFiles /// The relative path in the Configuration directory /// The for the operation. If , the operation will be performed as the user of the /// The for the operation - /// A resulting in the of the file + /// A resulting in the of the file Task Read(string configurationRelativePath, ISystemIdentity systemIdentity, CancellationToken cancellationToken); ///