Skip to content

Commit

Permalink
codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Dec 18, 2024
1 parent cc86ab0 commit d9c95b5
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,7 @@ public AttacherRuntimeTask(IProcessTask task, RuntimeArgumentCollection args)
throw new ArgumentException(
$"Path is blank for ProcessTask '{task}' - it should be a class name of type {nameof(IAttacher)}");

if (ProcessTask.Path == typeof(RemoteTableWithoutDBCreationAttacher).ToString())
{
Attacher = MEF.CreateA<IAttacher>(ProcessTask.Path);
}
else
{
Attacher = MEF.CreateA<IAttacher>(ProcessTask.Path, [true]);
}
Attacher = ProcessTask.Path == typeof(RemoteTableWithoutDBCreationAttacher).ToString() ? MEF.CreateA<IAttacher>(ProcessTask.Path) : MEF.CreateA<IAttacher>(ProcessTask.Path, [true]);
SetPropertiesForClass(RuntimeArguments, Attacher);
Attacher.Initialize(args.StageSpecificArguments.RootDir, RuntimeArguments.StageSpecificArguments.DbInfo);
}
Expand Down

0 comments on commit d9c95b5

Please sign in to comment.