Skip to content

Commit

Permalink
Fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jun 12, 2024
1 parent 490bfd1 commit 7ac0a49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions email.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ type Email struct {
// Header - an email header
type Header struct {
// Name: header name
Name string
Name string `json:",omitempty"`
// Value: header value
Value string
Value string `json:",omitempty"`
}

// Attachment is an optional encoded file to send along with an email
Expand Down
2 changes: 1 addition & 1 deletion postmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
client *Client
)

func init() {
func init() { //nolint:gochecknoinits // need to refactor this in the future
tServer = httptest.NewServer(tMux)

transport := &http.Transport{
Expand Down
4 changes: 2 additions & 2 deletions webhooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func TestCreateWebhook(t *testing.T) {

var res Webhook
err := decoder.Decode(&res)
req.Body.Close()
_ = req.Body.Close()

if err != nil {
t.Fatalf("Webhook: %s", err.Error())
Expand Down Expand Up @@ -278,7 +278,7 @@ func TestEditWebhook(t *testing.T) {

var res Webhook
err := decoder.Decode(&res)
req.Body.Close()
_ = req.Body.Close()

if err != nil {
t.Fatalf("Webhook: %s", err.Error())
Expand Down

0 comments on commit 7ac0a49

Please sign in to comment.