mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-28 23:52:36 +01:00
Minor code cleanups
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
||||
@@ -32,22 +32,15 @@ namespace Tgstation.Server.Host.Components.Chat.Commands
|
||||
/// </summary>
|
||||
readonly IRepositoryManager repositoryManager;
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="Models.Instance"/> for the <see cref="PullRequestsCommand"/>
|
||||
/// </summary>
|
||||
readonly Models.Instance instance;
|
||||
|
||||
/// <summary>
|
||||
/// Construct a <see cref="RevisionCommand"/>
|
||||
/// </summary>
|
||||
/// <param name="watchdog">The value of <see cref="watchdog"/></param>
|
||||
/// <param name="repositoryManager">The value of <see cref="repositoryManager"/></param>
|
||||
/// <param name="instance">The value of <see cref="instance"/></param>
|
||||
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));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Tgstation.Server.Host.Components.StaticFiles
|
||||
/// <param name="configurationRelativePath">The relative path in the Configuration directory</param>
|
||||
/// <param name="systemIdentity">The <see cref="ISystemIdentity"/> for the operation. If <see langword="null"/>, the operation will be performed as the user of the <see cref="Core.Application"/></param>
|
||||
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation</param>
|
||||
/// <returns>A <see cref="Task{TResult}"/> resulting in the <see cref="Api.Models.ConfigurationFile"/> of the file</returns>
|
||||
/// <returns>A <see cref="Task{TResult}"/> resulting in the <see cref="ConfigurationFile"/> of the file</returns>
|
||||
Task<ConfigurationFile> Read(string configurationRelativePath, ISystemIdentity systemIdentity, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user