diff options
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 |