修复NPE BUG

This commit is contained in:
zhangdeman committed 2022-05-22 17:27:33 +08:00
1 parent c5908177a2
commit 654739ee3c
1 file changed
+1 -1
+1 -1
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 创建文件
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.