Fix some warnings

This commit is contained in:
2023-05-28 12:09:06 +02:00
parent 2c519bf122
commit d3b83a3a76
3 changed files with 4 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ public class Bundler
{
if (_absoluteFiles != null) { return _absoluteFiles; }
if (string.IsNullOrEmpty(_absolutePath))
if (_absolutePath == null || string.IsNullOrEmpty(_absolutePath))
{
_absoluteFiles = new List<string>();
return _absoluteFiles;

View File

@@ -84,7 +84,8 @@ public static class ServerHelpers
}
else if (IsUrlSafe(ch) == false)
{
sbResult.Append($"%{ch:X02}");
int intCh = ch;
sbResult.Append($"%{intCh:X02}");
}
else
{

View File

@@ -34,7 +34,7 @@ public class FrmError : PageCommon
Label lblErrorTitle = new Label {Text = Title, Tag = "h2"};
Controls.Add(lblErrorTitle);
Exception? exAux = _ex;
Exception? exAux = (Exception?)_ex;
//if (exAux is HttpUnhandledException && exAux.InnerException != null) { exAux = exAux.InnerException; }
while (exAux != null)
{