Commit f24c7dcf authored by Joshua Gutow's avatar Joshua Gutow

Nosemgrep on Marshalling of a pointer type

parent 0c7b5569
......@@ -42,7 +42,7 @@ func (p *Page) MarshalText() ([]byte, error) {
return dst, nil
}
func (p *Page) MarshalJSON() ([]byte, error) {
func (p *Page) MarshalJSON() ([]byte, error) { // nosemgrep
var out bytes.Buffer
w := zlibWriterPool.Get().(*zlib.Writer)
defer zlibWriterPool.Put(w)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment