From 9275197ee1aaa35fdd85e1e9ca1c145d48007290 Mon Sep 17 00:00:00 2001 From: liyang Date: Tue, 9 May 2023 18:34:31 +0800 Subject: [PATCH] * Fix sonar the smell of code. --- module/execution/model.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index f1aa8f66c7..04b0769123 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5163,11 +5163,6 @@ class executionModel extends model if(is_array($tree)) $tree = (object)$tree; switch($tree->type) { - case 'module': - $this->app->loadLang('tree'); - $html .= "
  • "; - $html .= "" . $tree->name . ''; - break; case 'task': $link = helper::createLink('execution', 'treeTask', "taskID={$tree->id}"); $html .= '
  • '; @@ -5190,6 +5185,11 @@ class executionModel extends model $html .= "
  • "; $html .= "{$this->lang->branch->common}{$tree->name}"; break; + default: + $this->app->loadLang('tree'); + $html .= "
  • "; + $html .= "" . $tree->name . ''; + break; } if(isset($tree->children)) {