Skip to content

Commit 537ddf8

Browse files
Copilotswissspidy
andcommitted
Fix code review issues: add default type and break statement
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent a233ae9 commit 537ddf8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Config_Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ public function update( $args, $assoc_args ) {
924924
/**
925925
* @var string $type
926926
*/
927-
$type = Utils\get_flag_value( $assoc_args, 'type' );
927+
$type = Utils\get_flag_value( $assoc_args, 'type', 'all' );
928928

929929
$options = [];
930930

@@ -977,6 +977,7 @@ public function update( $args, $assoc_args ) {
977977
if ( ! $config_transformer->exists( $type, $name ) ) {
978978
$adding = true;
979979
}
980+
break;
980981
}
981982

982983
$config_transformer->update( $type, $name, $value, $options );

0 commit comments

Comments
 (0)