This commit is contained in:
JustArchi
2020-12-11 23:00:54 +01:00
parent fcba8adedd
commit 9d2bb9939d
2 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
return StatusCode((int) HttpStatusCode.InternalServerError, new GenericResponse(false, string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingObject, nameof(files)) + Environment.NewLine + e));
}
HashSet<string> result = files.Select(Path.GetFileName).Where(fileName => !string.IsNullOrEmpty(fileName)).ToHashSet()!;
HashSet<string> result = files.Select(Path.GetFileName).Where(fileName => !string.IsNullOrEmpty(fileName)).ToHashSet(StringComparer.Ordinal)!;
return Ok(new GenericResponse<IReadOnlyCollection<string>>(result));
}