mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 22:17:51 +01:00
Fix a linter message
This commit is contained in:
@@ -12,6 +12,11 @@ namespace Tgstation.Server.Api.Models
|
||||
/// </summary>
|
||||
public sealed class EngineVersion : IEquatable<EngineVersion>
|
||||
{
|
||||
/// <summary>
|
||||
/// An array of a single '-' <see cref="char"/>.
|
||||
/// </summary>
|
||||
static readonly char[] DashChar = ['-'];
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="EngineType"/>.
|
||||
/// </summary>
|
||||
@@ -48,7 +53,7 @@ namespace Tgstation.Server.Api.Models
|
||||
if (input == null)
|
||||
throw new ArgumentNullException(nameof(input));
|
||||
|
||||
var splits = input.Split(new char[] { '-' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
var splits = input.Split(DashChar, StringSplitOptions.RemoveEmptyEntries);
|
||||
engineVersion = null;
|
||||
|
||||
if (splits.Length > 3)
|
||||
|
||||
Reference in New Issue
Block a user