mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed multiple benign warnings
This commit is contained in:
parent
e795043aef
commit
6047903ee6
@ -134,7 +134,7 @@ namespace Teknik.GitService
|
||||
Connection.Open();
|
||||
Connected = true;
|
||||
}
|
||||
catch (MySqlException ex)
|
||||
catch (MySqlException)
|
||||
{
|
||||
Connected = false;
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ namespace Teknik.Logging
|
||||
|
||||
client.Send(mail);
|
||||
}
|
||||
catch (Exception ex) { /* don't handle something in the handler */
|
||||
catch (Exception) { /* don't handle something in the handler */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ namespace Teknik.MailService
|
||||
Connection.Open();
|
||||
Connected = true;
|
||||
}
|
||||
catch (MySqlException ex)
|
||||
catch (MySqlException)
|
||||
{
|
||||
Connected = false;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ namespace Teknik.Piwik
|
||||
//}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ namespace Teknik.Piwik
|
||||
//tracker.doTrackPageView(string.Format("{0}/{1}", sub, title));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ namespace Teknik.Areas.Admin.Controllers
|
||||
model.LastSeen = UserHelper.GetLastAccountActivity(_dbContext, _config, user);
|
||||
models.Add(model);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
// Skip this result
|
||||
}
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
@foreach (var comment in Model)
|
||||
{
|
||||
@Html.Partial("Comment", comment)
|
||||
@await Html.PartialAsync("Comment", comment)
|
||||
}
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
@foreach (var podcast in Model)
|
||||
{
|
||||
@Html.Partial("Podcast", podcast)
|
||||
@await Html.PartialAsync("Podcast", podcast)
|
||||
}
|
||||
|
@ -742,7 +742,7 @@ namespace Teknik.Areas.Users.Controllers
|
||||
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public IActionResult Delete()
|
||||
public async Task<IActionResult> Delete()
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
@ -753,7 +753,7 @@ namespace Teknik.Areas.Users.Controllers
|
||||
{
|
||||
UserHelper.DeleteAccount(_dbContext, _config, user);
|
||||
// Sign Out
|
||||
Logout();
|
||||
await Logout();
|
||||
return Json(new { result = true });
|
||||
}
|
||||
}
|
||||
|
@ -15,8 +15,6 @@ namespace Teknik.Filters
|
||||
{
|
||||
public class TrackDownload : ActionFilterAttribute
|
||||
{
|
||||
private readonly Config _config;
|
||||
|
||||
public TrackDownload()
|
||||
{
|
||||
//_config = config;
|
||||
|
@ -15,8 +15,6 @@ namespace Teknik.Filters
|
||||
{
|
||||
public class TrackLink : ActionFilterAttribute
|
||||
{
|
||||
private readonly Config _config;
|
||||
|
||||
public TrackLink()
|
||||
{
|
||||
//_config = config;
|
||||
|
@ -15,8 +15,6 @@ namespace Teknik.Filters
|
||||
{
|
||||
public class TrackPageView : ActionFilterAttribute
|
||||
{
|
||||
private readonly Config _config;
|
||||
|
||||
public TrackPageView()
|
||||
{
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ namespace Teknik.Security
|
||||
}
|
||||
}
|
||||
|
||||
private User m_Info;
|
||||
private User m_Info = null;
|
||||
public User Info
|
||||
{
|
||||
get
|
||||
|
@ -45,7 +45,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.1.0-preview1-final" />
|
||||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.1.0-preview1-final" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -70,8 +69,7 @@
|
||||
<Folder Include="Data\Migrations\" />
|
||||
<Folder Include="Migrations\" />
|
||||
<Folder Include="Views\Shared\" />
|
||||
<Folder Include="wwwroot\images\" />
|
||||
<Folder Include="wwwroot\lib\" />
|
||||
<Folder Include="wwwroot\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -29,7 +29,7 @@ namespace Teknik.Utilities.Cryptography
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
isValid = false;
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ namespace Teknik.Utilities
|
||||
Connection.Open();
|
||||
Connected = true;
|
||||
}
|
||||
catch (MySqlException ex)
|
||||
catch (MySqlException)
|
||||
{
|
||||
Connected = false;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ namespace Teknik.Utilities
|
||||
}
|
||||
while (processedBytes > 0 && bytesRemaining > 0);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
// Don't worry about it. Just leave
|
||||
await response.Body.FlushAsync();
|
||||
|
Loading…
Reference in New Issue
Block a user