From 654739ee3c079b1b22b1e13d5341c16be951e7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 22 May 2022 17:27:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DNPE=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.go b/file.go index 7f7dd86..73a33f7 100644 --- a/file.go +++ b/file.go @@ -114,7 +114,7 @@ func (f *fileOperate) SetOpenFlag(flagList ...int) *fileOperate { func (f *fileOperate) SetClearHasContentForWrite() *fileOperate { f.clearHasContent = true f.openFlag = f.openFlag | os.O_TRUNC - return nil + return f } // Create 创建文件