From e6c7cdf9b43d56fd07fdfbd90066fbecb6e9bc33 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 1 Mar 2023 19:10:16 +0100 Subject: [PATCH] Improves apiclient internal code --- src/Client/ApiClient.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Client/ApiClient.cs b/src/Client/ApiClient.cs index 939040b..2af64ee 100644 --- a/src/Client/ApiClient.cs +++ b/src/Client/ApiClient.cs @@ -77,9 +77,7 @@ public class ApiClient private string SetQuery(string? filter) { - var result = "set"; - - return !string.IsNullOrEmpty(filter) ? $"{result}/{filter.TrimStart('/')}" : result; + return !string.IsNullOrEmpty(filter) ? $"set/{filter.TrimStart('/')}" : "set"; } public async Task> FetchSetsAsync() @@ -94,7 +92,7 @@ public class ApiClient public async Task FetchSetByUuid(int uuid) { - return await FetchInternalAsync(SetQuery("uuid/" + uuid)); + return await FetchInternalAsync(SetQuery($"uuid/{uuid}")); } /*