Skip to content

Commit

Permalink
Fix formatting issues - golint and golang-ci-lint to return no errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Anderson committed Oct 18, 2023
1 parent cc620ec commit 23a4674
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions services/admin/promo/create_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package promo_test

import (
"log"
"net/http"
"testing"
"time"
Expand Down Expand Up @@ -43,13 +42,8 @@ func TestService_Create_Error(t *testing.T) {
ExpiresAt: time.Now().Add(86400 * 24 * time.Hour).Unix(),
})
if !assert.NoError(t, err) {
log.Printf("[Admin/Promos/Create] %s", err)

return
}

// error

}

func TestPromoRequest_Validate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion services/admin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (s *Service) Relays() *relays.Service {
return relays.NewService(s.Call)
}

// Propmo contains all endpoints for promos.
// Promo contains all endpoints for promos.
func (s *Service) Promo() *promo.Service {
return promo.NewService(s.Call)
}

0 comments on commit 23a4674

Please sign in to comment.