修复NPE BUG
This commit is contained in:
parent
c5908177a2
commit
654739ee3c
2
file.go
2
file.go
@ -114,7 +114,7 @@ func (f *fileOperate) SetOpenFlag(flagList ...int) *fileOperate {
|
|||||||
func (f *fileOperate) SetClearHasContentForWrite() *fileOperate {
|
func (f *fileOperate) SetClearHasContentForWrite() *fileOperate {
|
||||||
f.clearHasContent = true
|
f.clearHasContent = true
|
||||||
f.openFlag = f.openFlag | os.O_TRUNC
|
f.openFlag = f.openFlag | os.O_TRUNC
|
||||||
return nil
|
return f
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create 创建文件
|
// Create 创建文件
|
||||||
|
Loading…
Reference in New Issue
Block a user