remove hardcoded names when using GetInterface()

This commit is contained in:
sbwalker
2024-07-17 19:52:44 -04:00
parent 45afbbdac6
commit 7ee6775251
6 changed files with 7 additions and 7 deletions

View File

@ -452,7 +452,7 @@ namespace Oqtane.Infrastructure
{
try
{
if (moduleType.GetInterface("IInstallable") != null)
if (moduleType.GetInterface(nameof(IInstallable)) != null)
{
tenantManager.SetTenant(tenant.TenantId);
var moduleObject = ActivatorUtilities.CreateInstance(scope.ServiceProvider, moduleType) as IInstallable;