Fix null warning, cleanup
This commit is contained in:
parent
7aae264d90
commit
359ccd5678
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user