Browse Source

Fixed multiple benign warnings

tags/3.0.0^2
Teknikode 1 year ago
parent
commit
6047903ee6

+ 1
- 1
GitService/MysqlDatabase.cs View File

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

+ 1
- 1
Logging/Logger.cs 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 */
}
}
}

+ 1
- 1
MailService/MysqlDatabase.cs View File

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

+ 1
- 1
Piwik/Reporting.cs View File

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

+ 1
- 1
Piwik/Tracking.cs View File

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

}

+ 1
- 1
Teknik/Areas/Admin/Controllers/AdminController.cs 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
}

+ 1
- 1
Teknik/Areas/Podcast/Views/Podcast/Comments.cshtml View File

@@ -2,5 +2,5 @@

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

+ 1
- 1
Teknik/Areas/Podcast/Views/Podcast/Podcasts.cshtml View File

@@ -2,5 +2,5 @@

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

+ 2
- 2
Teknik/Areas/User/Controllers/UserController.cs 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 });
}
}

+ 0
- 2
Teknik/Filters/TrackDownload.cs View File

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

public TrackDownload()
{
//_config = config;

+ 0
- 2
Teknik/Filters/TrackLink.cs View File

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

public TrackLink()
{
//_config = config;

+ 0
- 2
Teknik/Filters/TrackPageView.cs View File

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

public TrackPageView()
{
}

+ 1
- 1
Teknik/Security/TeknikPrincipal.cs View File

@@ -22,7 +22,7 @@ namespace Teknik.Security
}
}

private User m_Info;
private User m_Info = null;
public User Info
{
get

+ 1
- 3
Teknik/Teknik.csproj 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>

+ 1
- 1
Utilities/Cryptography/PGP.cs View File

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

+ 1
- 1
Utilities/MysqlDatabase.cs View File

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

+ 1
- 1
Utilities/ResponseHelper.cs 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();

Loading…
Cancel
Save