From 1be8583ae6cd747aaab9066f5ce9c8029c547d18 Mon Sep 17 00:00:00 2001 From: nxshock Date: Tue, 5 Mar 2024 21:46:13 +0500 Subject: [PATCH] Remove unused vars --- config.go | 3 --- kernel.go | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config.go b/config.go index 4ae3b67..d451207 100644 --- a/config.go +++ b/config.go @@ -45,9 +45,6 @@ type Server struct { // Ошибка работы с сервером err error - // Флаг завершения работы - finished bool - config *Config } diff --git a/kernel.go b/kernel.go index 090b796..956ad29 100644 --- a/kernel.go +++ b/kernel.go @@ -30,7 +30,6 @@ type Job struct { config Config status string - err error isFinished bool exportedRows int } @@ -182,7 +181,7 @@ func (j *Job) iterateServers(sqlStr string, branchFieldNum int) chan Row { break } - resultRow := make([]any, 0) + var resultRow []any if branchFieldNum != 0 { // Подстановка имени сервера resultRow = append(append(container[:branchFieldNum-1], server.Name), container[branchFieldNum:]...)