Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit b823905

Browse files
committed
print ./scripts/build_email_campaign/ into stdout
1 parent 3c91055 commit b823905

File tree

1 file changed

+2
-6
lines changed
  • scripts/build_email_campaign

1 file changed

+2
-6
lines changed

scripts/build_email_campaign/main.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package main
22

33
import (
4-
"io/ioutil"
4+
"fmt"
55
"log"
6-
"os"
76
"strings"
87

98
"github.com/pkg/errors"
@@ -53,9 +52,6 @@ func buildUsersList() error {
5352
lines = append(lines, email)
5453
}
5554

56-
if err = ioutil.WriteFile("users.csv", []byte(strings.Join(lines, "\n")), os.ModePerm); err != nil {
57-
return errors.Wrap(err, "failed to write result to file")
58-
}
59-
55+
fmt.Println(strings.Join(lines, "\n"))
6056
return nil
6157
}

0 commit comments

Comments
 (0)