Skip to content

Commit

Permalink
Remove outdated logic (DynamoDS#12081)
Browse files Browse the repository at this point in the history
  • Loading branch information
sm6srw authored and M-JULIANI committed Sep 30, 2021
1 parent fb9edf2 commit 11a1dff
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/DynamoPackages/PackageManagerExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,8 @@ public void Startup(StartupParams startupParams)
PackageUploadBuilder.SetEngineVersion(startupParams.DynamoVersion);
var uploadBuilder = new PackageUploadBuilder(dirBuilder, new MutatingFileCompressor());

// Align the package upload directory with the package download directory -
// either the one selected by the user or the default directory.
string packageUploadDirectory;
if (startupParams.Preferences is PreferenceSettings preferences)
{
packageUploadDirectory = string.IsNullOrEmpty(preferences.SelectedPackagePathForInstall) ?
startupParams.PathManager.DefaultPackagesDirectory : preferences.SelectedPackagePathForInstall;
}
else
{
packageUploadDirectory = startupParams.PathManager.DefaultPackagesDirectory;
}
var packageUploadDirectory = startupParams.PathManager.DefaultPackagesDirectory;

PackageManagerClient = new PackageManagerClient(
new GregClient(startupParams.AuthProvider, url),
uploadBuilder, packageUploadDirectory);
Expand Down

0 comments on commit 11a1dff

Please sign in to comment.