From ca7f55667f0831e38689bbde256ced3ba876db7b Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Thu, 2 Feb 2017 13:55:49 -0500 Subject: [PATCH] Changes wrt govet/golint suggestions --- client/client.go | 1 + model/catalog.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 47d49de..60a5502 100644 --- a/client/client.go +++ b/client/client.go @@ -18,6 +18,7 @@ import ( "github.com/vkuznet/transfer2go/utils" ) +// UserRequest represent client request to the agent type UserRequest struct { SrcUrl string SrcAlias string diff --git a/model/catalog.go b/model/catalog.go index 518857c..2e28e48 100644 --- a/model/catalog.go +++ b/model/catalog.go @@ -101,7 +101,7 @@ func (c *Catalog) Add(entry CatalogEntry) error { // get block id stm = fmt.Sprintf("SELECT id FROM BLOCKS WHERE block=?") rows, err = DB.Query(stm, entry.Block) - check("Unabel to DB.Query over blocks table", err) + check("Unable to DB.Query over blocks table", err) for rows.Next() { err = rows.Scan(&bid) check("Unable to scan rows for datasetid", err)