瀏覽代碼

analyse fix: Dead catch - Exception is never thrown in the try block

Chance 2 年之前
父節點
當前提交
50f20ebd1c
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/Worker.php

+ 1 - 5
src/Worker.php

@@ -1915,11 +1915,7 @@ class Worker
                 static::$workers = [];
                 static::$globalEvent?->stop();
 
-                try {
-                    exit($code);
-                } catch (Exception $e) {
-
-                }
+                exit($code);
             }
         }
     }