From ec51d249014685b8029e7857a315e3665f89a97b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 10 Jan 2023 20:39:03 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=A7=BB=E9=99=A4=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E7=A9=BA=E9=97=B4=E6=97=B6=E4=B8=8D=E7=89=A9=E7=90=86=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/workspace.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go index 16082bf4f..8c98b41c3 100644 --- a/kernel/api/workspace.go +++ b/kernel/api/workspace.go @@ -106,13 +106,6 @@ func removeWorkspaceDir(c *gin.Context) { return } - if err = os.RemoveAll(path); nil != err { - msg := fmt.Sprintf("remove workspace dir [%s] failed: %s", path, err) - ret.Code = -1 - ret.Msg = msg - return - } - if util.WorkspaceDir == path { os.Exit(util.ExitCodeOk) }