Skip to content

Commit

Permalink
Minor refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Aug 13, 2020
1 parent 8d42f5f commit 42335d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Agent/Services/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ public async Task InstallLatestVersion()


private class WebClientEx : WebClient
{
private int _requestTimeout;
{ private readonly int _requestTimeout;

public WebClientEx(int requestTimeout)
{
Expand Down
3 changes: 1 addition & 2 deletions Shared/Win32/Win32Interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ public static bool GetCurrentDesktop(out string desktopName)
try
{
byte[] deskBytes = new byte[256];
uint lenNeeded;
if (!GetUserObjectInformationW(inputDesktop, UOI_NAME, deskBytes, 256, out lenNeeded))
if (!GetUserObjectInformationW(inputDesktop, UOI_NAME, deskBytes, 256, out uint lenNeeded))
{
desktopName = string.Empty;
return false;
Expand Down

0 comments on commit 42335d3

Please sign in to comment.