Skip to content

Commit

Permalink
chore: fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed Aug 9, 2023
1 parent 642fd03 commit db52a8b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions api/handler/v1beta1/appeal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package v1beta1
import (
"context"
"errors"

guardianv1beta1 "github.com/goto/guardian/api/proto/gotocompany/guardian/v1beta1"
"github.com/goto/guardian/core/appeal"
"github.com/goto/guardian/domain"
Expand Down
4 changes: 2 additions & 2 deletions api/handler/v1beta1/appeal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package v1beta1_test
import (
"context"
"errors"
"github.com/google/uuid"
"time"

"github.com/google/uuid"

guardianv1beta1 "github.com/goto/guardian/api/proto/gotocompany/guardian/v1beta1"
"github.com/goto/guardian/core/appeal"
"github.com/goto/guardian/domain"
Expand Down Expand Up @@ -702,7 +703,6 @@ func (s *GrpcHandlersSuite) TestGetAppeal() {
s.Nil(res)
s.appealService.AssertExpectations(s.T())
})

}

func (s *GrpcHandlersSuite) TestCancelAppeal() {
Expand Down
1 change: 0 additions & 1 deletion core/appeal/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2395,7 +2395,6 @@ func (s *ServiceTestSuite) TestCancel() {
s.Nil(actualResult)
s.EqualError(actualErr, expectedErr.Error())
})

}

func (s *ServiceTestSuite) TestAddApprover() {
Expand Down
1 change: 0 additions & 1 deletion internal/store/postgres/approval_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func (s *ApprovalRepositoryTestSuite) TearDownSuite() {
}

func (s *ApprovalRepositoryTestSuite) TestListApprovals() {

pendingAppeal := &domain.Appeal{
ResourceID: s.dummyResource.ID,
PolicyID: s.dummyPolicy.ID,
Expand Down
3 changes: 2 additions & 1 deletion pkg/evaluator/expression_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package evaluator_test

import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"

"github.com/goto/guardian/pkg/evaluator"
)

Expand Down
1 change: 0 additions & 1 deletion plugins/notifiers/slack/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func (s *ClientTestSuite) TestNotify() {

s.Equal(expectedErrs, actualErrs)
})

}

func (s *ClientTestSuite) TestParseMessage() {
Expand Down
2 changes: 0 additions & 2 deletions plugins/providers/bigquery/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ const (
ResourceTypeDataset = "dataset"
// ResourceTypeTable is the resource type name for BigQuery table
ResourceTypeTable = "table"

resourceTypeUnknown = "unknown"
)

// Dataset is a reference to a BigQuery dataset
Expand Down
3 changes: 2 additions & 1 deletion plugins/providers/bigquery/model_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package bigquery_test

import (
"github.com/goto/guardian/core/resource"
"testing"

"github.com/goto/guardian/core/resource"

"github.com/goto/guardian/domain"
"github.com/goto/guardian/plugins/providers/bigquery"
"github.com/stretchr/testify/assert"
Expand Down
3 changes: 2 additions & 1 deletion utils/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package utils

import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"
)

func TestMapToSlice(t *testing.T) {
Expand Down

0 comments on commit db52a8b

Please sign in to comment.