aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-08-05 16:07:05 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-08-05 16:07:05 +0100
commitb11d2b8ed71a474066878d172b21d41bd7584d96 (patch)
treebf4792ba4b0fa106b8003bc99adc93cfedaf1338
parente25eb5b60e1db7db85c20c1ff2b7d202853bc495 (diff)
fixed missing row in master
-rw-r--r--pkg/datamaps/writer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/datamaps/writer.go b/pkg/datamaps/writer.go
index 72a28b3..6c28ff4 100644
--- a/pkg/datamaps/writer.go
+++ b/pkg/datamaps/writer.go
@@ -104,7 +104,7 @@ func CreateMaster(opts *Options) error {
}
}
- for masterRow := 0; masterRow < len(datamapKeys); masterRow++ {
+ for masterRow := 0; masterRow <= len(datamapKeys); masterRow++ {
r, err := sh.AddRowAtIndex(masterRow)
if err != nil {
return fmt.Errorf("cannot create row %d in output spreadsheet: %v", masterRow, err)