修复NPE BUG

This commit is contained in:
白茶清欢 2022-05-22 17:27:33 +08:00
parent c5908177a2
commit 654739ee3c

View File

@ -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 创建文件