aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--pkg/datamaps/writer.go3
2 files changed, 1 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index fe8ea92..36dfae5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ go.sum
/datamaps
pkg/datamaps/testdata/test.db
/main
+/bin/datamaps
diff --git a/pkg/datamaps/writer.go b/pkg/datamaps/writer.go
index 9595132..9e7973f 100644
--- a/pkg/datamaps/writer.go
+++ b/pkg/datamaps/writer.go
@@ -63,9 +63,6 @@ func CreateMaster(opts *Options) error {
var rowCount int64
rowCountRes := db.QueryRow(sqlCount, opts.DMName, opts.ReturnName)
- if err != nil {
- return fmt.Errorf("cannot query for row count of return data - %v", err)
- }
if err := rowCountRes.Scan(&rowCount); err != nil {
return err