Skip to content

Commit

Permalink
Remove unnecessary lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Mar 12, 2020
1 parent 6aa9655 commit 0b5b7e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions Desktop.Linux/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,8 @@ public async Task Init()
{
SessionID = "Retrieving...";

if (string.IsNullOrWhiteSpace(Host))
{
Host = Config.GetConfig().Host;
}

Host = Config.GetConfig().Host;

while (string.IsNullOrWhiteSpace(Host))
{
Host = "https://";
Expand Down
5 changes: 1 addition & 4 deletions Desktop.Win/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,7 @@ public async Task Init()
{
SessionID = "Retrieving...";

if (string.IsNullOrWhiteSpace(Host))
{
Host = Config.GetConfig().Host;
}
Host = Config.GetConfig().Host;

while (string.IsNullOrWhiteSpace(Host))
{
Expand Down
1 change: 0 additions & 1 deletion Server/API/ClientDownloadsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ private async Task<ActionResult> GetInstallFile(string organizationID, string pl
{
if (await FileLock.WaitAsync(TimeSpan.FromSeconds(15)))
{
var organizationName = DataService.GetOrganizationNameById(organizationID);
var scheme = AppConfig.RedirectToHttps ? "https" : Request.Scheme;
var fileContents = new List<string>();
string fileName;
Expand Down

0 comments on commit 0b5b7e2

Please sign in to comment.