Skip to content

Commit cc6dde4

Browse files
committed
Remove extra if condition
1 parent a8bc76d commit cc6dde4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

php/EE/Runner.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,10 +870,7 @@ private function maybe_trigger_migration() {
870870

871871
if ( Comparator::lessThan( $base_current_version, $base_db_version ) ) {
872872

873-
$ee_update_command = 'ee cli update --stable --yes';
874-
if ( IS_DARWIN ) {
875-
$ee_update_command = 'brew upgrade easyengine';
876-
}
873+
$ee_update_command = IS_DARWIN ? 'brew upgrade easyengine' : 'ee cli update --stable --yes';
877874
$ee_update_msg = sprintf(
878875
'It seems you\'re not running latest version. Update EasyEngine using `%s`.',
879876
$ee_update_command

0 commit comments

Comments
 (0)