From 0122addd00de272340752a208a4eba8b62c1438b Mon Sep 17 00:00:00 2001 From: Pengfei Xue Date: Thu, 21 Nov 2013 18:39:16 +0800 Subject: [PATCH] http.ResponseWriter doesn't implement WriteCloser interface The removed code will never be executed, remove it --- context/output.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/context/output.go b/context/output.go index fa38f4e4..ce40cf89 100644 --- a/context/output.go +++ b/context/output.go @@ -64,8 +64,6 @@ func (output *BeegoOutput) Body(content []byte) { output_writer.(*gzip.Writer).Close() case *flate.Writer: output_writer.(*flate.Writer).Close() - case io.WriteCloser: - output_writer.(io.WriteCloser).Close() } }