Skip to content

Commit

Permalink
Code cleanup; removed this
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianSuess committed Apr 28, 2024
1 parent d911be0 commit 945c75c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public class DirectoryModuleCatalog : ModuleCatalog
/// </summary>
protected override void InnerLoad()
{
if (string.IsNullOrEmpty(this.ModulePath))
if (string.IsNullOrEmpty(ModulePath))
throw new InvalidOperationException(Resources.ModulePathCannotBeNullOrEmpty);

if (!Directory.Exists(this.ModulePath))
if (!Directory.Exists(ModulePath))
throw new InvalidOperationException(
string.Format(CultureInfo.CurrentCulture, Resources.DirectoryNotFound, this.ModulePath));
string.Format(CultureInfo.CurrentCulture, Resources.DirectoryNotFound, ModulePath));

AppDomain childDomain = AppDomain.CurrentDomain;

Expand All @@ -63,7 +63,7 @@ select assembly.Location
(InnerModuleInfoLoader)
childDomain.CreateInstanceFrom(loaderType.Assembly.Location, loaderType.FullName).Unwrap();

this.Items.AddRange(loader.GetModuleInfos(this.ModulePath));
Items.AddRange(loader.GetModuleInfos(ModulePath));
}
}
catch (Exception ex)
Expand Down

0 comments on commit 945c75c

Please sign in to comment.