From 87d16f0e159bdca4863e0366d19f58a7ac967101 Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Thu, 12 Aug 2021 10:33:10 +0800 Subject: [PATCH 1/2] .github : update bug template. --- .github/ISSUE_TEMPLATE/bug--.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug--.md b/.github/ISSUE_TEMPLATE/bug--.md index 1748845..aa54100 100644 --- a/.github/ISSUE_TEMPLATE/bug--.md +++ b/.github/ISSUE_TEMPLATE/bug--.md @@ -37,6 +37,8 @@ go-cqhttp版本: 连接方式: 使用协议: +**在最新的release版本中能否复现** + **bug内容** From c61a913c4943f161cb23dcc151581d758c380eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=88=90=E9=94=B4?= <243852814@qq.com> Date: Mon, 23 Aug 2021 14:02:51 +0800 Subject: [PATCH 2/2] update fs.go --- global/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global/fs.go b/global/fs.go index 9530013..60115a2 100644 --- a/global/fs.go +++ b/global/fs.go @@ -45,7 +45,7 @@ var ( // PathExists 判断给定path是否存在 func PathExists(path string) bool { _, err := os.Stat(path) - return err == nil || os.IsExist(err) + return err == nil || errors.Is(err, os.ErrExist) } // ReadAllText 读取给定path对应文件,无法读取时返回空值