Skip to content

Commit 3470c9f

Browse files
committed
dotnet format fixes
1 parent 60e03dc commit 3470c9f

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/Octoshift/Services/GitlabClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
2-
using System.IO;
32
using System.Collections.Generic;
3+
using System.IO;
44
using System.Linq;
55
using System.Net;
66
using System.Net.Http;
@@ -168,7 +168,7 @@ await _retryPolicy.Retry(async () =>
168168
var retryAfter = response.Headers.RetryAfter?.Delta?.TotalSeconds
169169
?? (response.Headers.RetryAfter?.Date.HasValue == true
170170
? (response.Headers.RetryAfter.Date.Value - DateTimeOffset.UtcNow).TotalSeconds
171-
: (double?)null);
171+
: null);
172172
var retryAfterMessage = retryAfter.HasValue ? $" GitLab requested a retry after {Math.Max(0, (int)retryAfter.Value)} seconds." : "";
173173
_log.LogWarning($"GitLab rate limit hit (HTTP 429) downloading the export archive.{retryAfterMessage} Retrying...");
174174

src/gl2gh/Commands/GenerateScript/GenerateScriptCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
using System.CommandLine;
33
using System.IO;
44
using Microsoft.Extensions.DependencyInjection;
5-
using OctoshiftCLI.GitlabToGithub.Factories;
65
using OctoshiftCLI.Commands;
76
using OctoshiftCLI.Contracts;
7+
using OctoshiftCLI.GitlabToGithub.Factories;
88
using OctoshiftCLI.Services;
99

1010
namespace OctoshiftCLI.GitlabToGithub.Commands.GenerateScript;

src/gl2gh/Commands/InventoryReport/InventoryReportCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using System;
22
using System.CommandLine;
33
using Microsoft.Extensions.DependencyInjection;
4-
using OctoshiftCLI.GitlabToGithub.Factories;
54
using OctoshiftCLI.Commands;
5+
using OctoshiftCLI.GitlabToGithub.Factories;
66
using OctoshiftCLI.Services;
77

88
namespace OctoshiftCLI.GitlabToGithub.Commands.InventoryReport

src/gl2gh/Commands/MigrateRepo/MigrateRepoCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System;
22
using System.CommandLine;
33
using Microsoft.Extensions.DependencyInjection;
4-
using OctoshiftCLI.GitlabToGithub.Factories;
54
using OctoshiftCLI.Commands;
65
using OctoshiftCLI.Contracts;
76
using OctoshiftCLI.Extensions;
87
using OctoshiftCLI.Factories;
8+
using OctoshiftCLI.GitlabToGithub.Factories;
99
using OctoshiftCLI.Services;
1010

1111
namespace OctoshiftCLI.GitlabToGithub.Commands.MigrateRepo;

src/gl2gh/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.Threading.Tasks;
1010
using Microsoft.Extensions.DependencyInjection;
1111

12+
1213
using OctoshiftCLI.GitlabToGithub.Factories;
1314
using OctoshiftCLI.Contracts;
1415
using OctoshiftCLI.Extensions;

0 commit comments

Comments
 (0)