From 03c00d5e41cfb7d586e979982cdf594757e78c1c Mon Sep 17 00:00:00 2001 From: Lukas Vogel Date: Mon, 18 Mar 2019 14:20:19 +0100 Subject: [PATCH] Remove unreachable code The returns can never be reached because the loop is guaranteed to return. --- copy_from.go | 2 -- copy_to.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/copy_from.go b/copy_from.go index 27e2fc9a..d4b594d9 100644 --- a/copy_from.go +++ b/copy_from.go @@ -334,6 +334,4 @@ func (c *Conn) CopyFromReader(r io.Reader, sql string) error { return c.processContextFreeMsg(msg) } } - - return nil } diff --git a/copy_to.go b/copy_to.go index 0e11a6ed..f6b8d361 100644 --- a/copy_to.go +++ b/copy_to.go @@ -59,6 +59,4 @@ func (c *Conn) CopyToWriter(w io.Writer, sql string, args ...interface{}) error return c.processContextFreeMsg(msg) } } - - return nil }