Skip to content

Commit 9bda625

Browse files
committed
fixup! PR comments
1 parent 6af0b7b commit 9bda625

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

App/ViewModels/TrayWindowViewModel.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ private void UpdateFromRpcModel(RpcModel rpcModel)
144144

145145
// For every stopped workspace that doesn't have any agents, add a
146146
// dummy agent row.
147-
foreach (var workspace in rpcModel.Workspaces.Where(w => w.Status == Workspace.Types.Status.Stopped && !workspacesWithAgents.Contains(w.Id)))
147+
foreach (var workspace in rpcModel.Workspaces.Where(w =>
148+
w.Status == Workspace.Types.Status.Stopped && !workspacesWithAgents.Contains(w.Id)))
148149
agents.Add(new AgentViewModel
149150
{
150151
// We just assume that it's a single-agent workspace.

App/Views/Pages/TrayWindowMainPage.xaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
1616
<converters:InverseBoolToVisibilityConverter x:Key="InverseBoolToVisibilityConverter" />
1717

18-
<converters:VpnLifecycleToBoolConverter x:Key="ConnectingBoolConverter" Unknown="true" Starting="true" Stopping="true" />
18+
<converters:VpnLifecycleToBoolConverter x:Key="ConnectingBoolConverter" Unknown="true" Starting="true"
19+
Stopping="true" />
1920
<converters:VpnLifecycleToBoolConverter x:Key="NotConnectingBoolConverter" Started="true" Stopped="true" />
2021
<converters:VpnLifecycleToBoolConverter x:Key="StoppedBoolConverter" Stopped="true" />
2122
<converters:VpnLifecycleToVisibilityConverter x:Key="StartedVisibilityConverter" Started="true" />

App/Views/SignInWindow.xaml.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Coder.Desktop.App.Views.Pages;
44
using Microsoft.UI.Windowing;
55
using Microsoft.UI.Xaml;
6-
using WinRT.Interop;
76

87
namespace Coder.Desktop.App.Views;
98

CoderSdk/CoderApiClient.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@ public void SetSessionToken(string token)
6060
_httpClient.DefaultRequestHeaders.Remove("Coder-Session-Token");
6161
_httpClient.DefaultRequestHeaders.Add("Coder-Session-Token", token);
6262
}
63-
private async Task<TResponse> SendRequestNoBodyAsync<TResponse>(HttpMethod method, string path, CancellationToken ct = default) =>
64-
await SendRequestAsync<object, TResponse>(method, path, null, ct);
63+
64+
private async Task<TResponse> SendRequestNoBodyAsync<TResponse>(HttpMethod method, string path,
65+
CancellationToken ct = default)
66+
{
67+
return await SendRequestAsync<object, TResponse>(method, path, null, ct);
68+
}
6569

6670
private async Task<TResponse> SendRequestAsync<TRequest, TResponse>(HttpMethod method, string path,
6771
TRequest? payload, CancellationToken ct = default)

Vpn.Service/Manager.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ private async ValueTask<StartResponse> HandleClientMessageStart(ClientMessage me
138138
{
139139
try
140140
{
141-
var serverVersion = await CheckServerVersionAndCredentials(message.Start.CoderUrl, message.Start.ApiToken, ct);
141+
var serverVersion =
142+
await CheckServerVersionAndCredentials(message.Start.CoderUrl, message.Start.ApiToken, ct);
142143
if (_status == TunnelStatus.Started && _lastStartRequest != null &&
143144
_lastStartRequest.Equals(message.Start) && _lastServerVersion?.String == serverVersion.String)
144145
{

Vpn.Service/Program.cs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static class Program
1616

1717
private const string ConsoleOutputTemplate =
1818
"[{Timestamp:HH:mm:ss} {Level:u3}] {SourceContext} - {Message:lj}{NewLine}{Exception}";
19+
1920
private const string FileOutputTemplate =
2021
"{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {SourceContext} - {Message:lj}{NewLine}{Exception}";
2122

0 commit comments

Comments
 (0)