1
0
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:
Uncled1023 2018-06-16 17:27:06 -07:00
parent e795043aef
commit 6047903ee6
17 changed files with 15 additions and 23 deletions

View File

@ -134,7 +134,7 @@ namespace Teknik.GitService
Connection.Open();
Connected = true;
}
catch (MySqlException ex)
catch (MySqlException)
{
Connected = false;
}

View File

@ -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 */
}
}
}

View File

@ -134,7 +134,7 @@ namespace Teknik.MailService
Connection.Open();
Connected = true;
}
catch (MySqlException ex)
catch (MySqlException)
{
Connected = false;
}

View File

@ -85,7 +85,7 @@ namespace Teknik.Piwik
//}
}
}
catch (Exception ex)
catch (Exception)
{
}

View File

@ -45,7 +45,7 @@ namespace Teknik.Piwik
//tracker.doTrackPageView(string.Format("{0}/{1}", sub, title));
}
}
catch (Exception ex)
catch (Exception)
{
}

View File

@ -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
}

View File

@ -2,5 +2,5 @@
@foreach (var comment in Model)
{
@Html.Partial("Comment", comment)
@await Html.PartialAsync("Comment", comment)
}

View File

@ -2,5 +2,5 @@
@foreach (var podcast in Model)
{
@Html.Partial("Podcast", podcast)
@await Html.PartialAsync("Podcast", podcast)
}

View File

@ -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 });
}
}

View File

@ -15,8 +15,6 @@ namespace Teknik.Filters
{
public class TrackDownload : ActionFilterAttribute
{
private readonly Config _config;
public TrackDownload()
{
//_config = config;

View File

@ -15,8 +15,6 @@ namespace Teknik.Filters
{
public class TrackLink : ActionFilterAttribute
{
private readonly Config _config;
public TrackLink()
{
//_config = config;

View File

@ -15,8 +15,6 @@ namespace Teknik.Filters
{
public class TrackPageView : ActionFilterAttribute
{
private readonly Config _config;
public TrackPageView()
{
}

View File

@ -22,7 +22,7 @@ namespace Teknik.Security
}
}
private User m_Info;
private User m_Info = null;
public User Info
{
get

View File

@ -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>

View File

@ -29,7 +29,7 @@ namespace Teknik.Utilities.Cryptography
}
}
}
catch (Exception ex)
catch (Exception)
{
isValid = false;
}

View File

@ -134,7 +134,7 @@ namespace Teknik.Utilities
Connection.Open();
Connected = true;
}
catch (MySqlException ex)
catch (MySqlException)
{
Connected = false;
}

View File

@ -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();