[lxc-devel] [lxd/master] lxc/file: Fix error handling

stgraber on Github lxc-bot at linuxcontainers.org
Thu Sep 5 18:16:21 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190905/bda4ad76/attachment.bin>
-------------- next part --------------
From 8a1dcabedcb880468c239e898745e51f972f7bdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 5 Sep 2019 14:16:07 -0400
Subject: [PATCH] lxc/file: Fix error handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc/file.go | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lxc/file.go b/lxc/file.go
index bf6251d6b3..0c03d3c1a6 100644
--- a/lxc/file.go
+++ b/lxc/file.go
@@ -50,8 +50,6 @@ func fileGetWrapper(server lxd.ContainerServer, container string, path string) (
 
 	count := 0
 	for {
-		var err error
-
 		select {
 		case <-chDone:
 			return buf, resp, err


More information about the lxc-devel mailing list