Skip to content

Commit 1769627

Browse files
committed
fix to NewWriterWithCloserAndFile
1 parent 4908d56 commit 1769627

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

grw/Writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func NewWriterWithCloserAndFile(writer ByteWriter, closer io.Closer, file *os.Fi
4646
return &Writer{
4747
Writer: writer,
4848
Closer: closer,
49-
File: nil,
49+
File: file,
5050
Mutex: &sync.Mutex{}}
5151
}
5252

0 commit comments

Comments
 (0)