Skip to content

Commit

Permalink
Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-robertson committed Feb 7, 2024
1 parent 886241f commit da0a311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/measure/OSRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ namespace measure {
if (script_argument.required()) {
switch (script_argument.type().value()) {
case OSArgumentType::Boolean:
if (bool b_ = getBoolArgumentValue(script_argument.name(), user_arguments)) {
if (getBoolArgumentValue(script_argument.name(), user_arguments)) {
argument_values[script_argument.name()] = "true";
} else {
argument_values[script_argument.name()] = "false";
Expand Down Expand Up @@ -820,7 +820,7 @@ namespace measure {
switch (script_argument.type().value()) {
case OSArgumentType::Boolean:
if (boost::optional<bool> optB_ = getOptionalBoolArgumentValue(script_argument.name(), user_arguments)) {
if (bool b_ = *optB_) {
if (*optB_) {
argument_values[script_argument.name()] = "true";
} else {
argument_values[script_argument.name()] = "false";
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/filetypes/WorkflowStepResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace detail {
} else if (m_value.variantType() == VariantType::Integer) {
value = std::to_string(m_value.valueAsInteger());
} else if (m_value.variantType() == VariantType::Boolean) {
if (bool b_ = m_value.valueAsBoolean()) {
if (m_value.valueAsBoolean()) {
value = "true";
} else {
value = "false";
Expand Down

0 comments on commit da0a311

Please sign in to comment.