Skip to content

Commit 6e3dcb2

Browse files
committed
Moved DateTime in CreateBrand.cs
1 parent 3492ff6 commit 6e3dcb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

launcher-csharp/eSignature/Examples/CreateBrand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ public static BrandsResponse Create(string brandName, string defaultBrandLanguag
4646
response.Headers.TryGetValue("X-RateLimit-Remaining", out string remaining);
4747
response.Headers.TryGetValue("X-RateLimit-Reset", out string reset);
4848

49-
DateTime resetDate = DateTimeOffset.FromUnixTimeSeconds(long.Parse(reset)).UtcDateTime;
50-
5149
if (reset != null && remaining != null)
5250
{
51+
DateTime resetDate = DateTimeOffset.FromUnixTimeSeconds(long.Parse(reset)).UtcDateTime;
5352
Console.WriteLine("API calls remaining: " + remaining);
5453
Console.WriteLine("Next Reset: " + resetDate);
5554
}

0 commit comments

Comments
 (0)