Skip to content

Commit 2da16bf

Browse files
author
Joao Antao
committed
Remove redundant string array. (#58)
1 parent d453229 commit 2da16bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BunqSdk/Http/ApiClient.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class ApiClient
2323
private const string DeviceServerUrl = "device-server";
2424
private const string InstallationUrl = "installation";
2525
private const string SessionServerUrl = "session-server";
26-
private static readonly string[] UrisNotRequiringActiveSession = new string[]
26+
private static readonly string[] AllUriNotRequiringActiveSession =
2727
{
2828
DeviceServerUrl,
2929
InstallationUrl,
@@ -143,7 +143,7 @@ private BunqResponseRaw SendRequest(HttpMethod method, string uriRelative,
143143
private BunqResponseRaw SendRequest(HttpRequestMessage requestMessage,
144144
IDictionary<string, string> customHeaders, string uriRelative)
145145
{
146-
if (!UrisNotRequiringActiveSession.Contains(uriRelative))
146+
if (!AllUriNotRequiringActiveSession.Contains(uriRelative))
147147
{
148148
apiContext.EnsureSessionActive();
149149
}

0 commit comments

Comments
 (0)