1
0
mirror of synced 2024-11-12 00:40:51 +01:00

Fix null warning, cleanup

This commit is contained in:
Yuchen Ji 2022-04-05 16:19:11 +08:00
parent 7aae264d90
commit 359ccd5678
3 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,5 @@
using System.Diagnostics;
using System.Security.Cryptography;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using CertificateManager;
using CertificateManager.Models;
using Microsoft.Extensions.DependencyInjection;

View File

@ -2,7 +2,7 @@
namespace GCLocalServerRewrite.common;
public class DatabaseHelper
public static class DatabaseHelper
{
/// <summary>
/// Static method to allow local data services to initialise their associated database conveniently.

View File

@ -1,8 +1,9 @@
using System.Diagnostics;
using Swan;
namespace GCLocalServerRewrite.common;
public class PathHelper
public static class PathHelper
{
/// <summary>
/// Gets the local path of html/static files.
@ -32,7 +33,12 @@ public class PathHelper
return parentFullName;
#else
return assemblyPath;
if (assemblyPath != null)
{
return assemblyPath;
}
throw SelfCheck.Failure("Cannot get assembly path!");
#endif
}
}