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

@ -194,7 +194,7 @@ namespace Oqtane.Controllers
{
try
{
if (moduletype.GetInterface("IInstallable") != null)
if (moduletype.GetInterface(nameof(IInstallable)) != null)
{
_tenantManager.SetTenant(tenant.TenantId);
var moduleobject = ActivatorUtilities.CreateInstance(_serviceProvider, moduletype);