Skip to content

Commit

Permalink
Update src/AppInstallerCLICore/Commands/SettingsCommand.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>
  • Loading branch information
florelis and yao-msft authored Mar 14, 2024
1 parent 3d8f87a commit 48d2ab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AppInstallerCLICore/Commands/SettingsCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ namespace AppInstaller::CLI

Utility::LocIndString validOptions = Join(", "_liv, adminSettingList);

if (execArgs.Contains(Execution::Args::Type::SettingName) && StringAdminSetting::Unknown == StringToStringAdminSetting(execArgs.GetArg(Execution::Args::Type::SettingName)))
if (StringAdminSetting::Unknown == StringToStringAdminSetting(execArgs.GetArg(Execution::Args::Type::SettingName))

{
throw CommandException(Resource::String::InvalidArgumentValueError(ArgumentCommon::ForType(Execution::Args::Type::SettingName).Name, validOptions));
}
Expand Down

0 comments on commit 48d2ab5

Please sign in to comment.