diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-01 19:25:16 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-01 19:28:05 +0100 |
commit | 1fa9157f4b035198ecdd93490e31301c1071317d (patch) | |
tree | 73f65b13de0908e42e61c81cfb08967e2484c482 /pkg/datamaps/writer.go | |
parent | add51ef91b96e604c00b447f58d5df5fa638b90e (diff) |
tidying linting and checker errors
Diffstat (limited to 'pkg/datamaps/writer.go')
-rw-r--r-- | pkg/datamaps/writer.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/datamaps/writer.go b/pkg/datamaps/writer.go index cff9f4e..d1da39f 100644 --- a/pkg/datamaps/writer.go +++ b/pkg/datamaps/writer.go @@ -15,6 +15,9 @@ import ( func ExportMaster(opts *Options) error { wb := xlsx.NewFile() sh, err := wb.AddSheet("Master Data") + if err != nil { + return fmt.Errorf("cannot add 'Master Data' sheet to new XLSX file: %v", err) + } // SQLITE CODE @@ -117,7 +120,7 @@ func ExportMaster(opts *Options) error { func appendValueMap(k, v string, values map[string][]string) (map[string][]string, error) { var keyIn bool - for kv, _ := range values { + for kv := range values { if kv == k { keyIn = true break |