1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Minor code cleanup

This commit is contained in:
Maksym Pavlenko
2017-01-06 10:04:34 -08:00
parent 001cdf4e0a
commit dce590a047
6 changed files with 3 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Threading.Tasks;
using System.Threading.Tasks;
using Podsync.Services.Feed;
using Podsync.Services.Links;
using Podsync.Services.Storage;

View File

@@ -1,5 +1,4 @@
using System;
using System.Threading.Tasks;
using System.Threading.Tasks;
using Podsync.Services.Feed;
using Podsync.Services.Links;
using Podsync.Services.Storage;

View File

@@ -33,7 +33,7 @@ namespace Podsync.Services.Builder
pageSize = Constants.DefaultPageSize;
}
Channel channel = null;
Channel channel;
if (linkType == LinkType.Channel)
{
channel = CreateChannel(await _client.Channel(id));

View File

@@ -8,8 +8,6 @@ namespace Podsync.Services.Links
Uri Make(LinkInfo info);
Uri Download(Uri baseUrl, string feedId, string videoId, string ext);
Uri Feed(Uri baseUrl, string feedId);
}
}

View File

@@ -194,11 +194,6 @@ namespace Podsync.Services.Links
}
}
public Uri Download(Uri baseUrl, string feedId, string videoId, string ext)
{
return new Uri(baseUrl, $"download/{feedId}/{videoId}{ext}");
}
public Uri Feed(Uri baseUrl, string feedId)
{
return new Uri(baseUrl, feedId);

View File

@@ -1,14 +0,0 @@
@{
ViewData["Title"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
<h3>Development Mode</h3>
<p>
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>
<p>
<strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
</p>