Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-brindley committed Dec 14, 2023
1 parent bd8b00b commit 48b581a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions adapters/slack/usergroup/usergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ func (u *UserGroup) Remove(ctx context.Context, emails []string) error {
if cpcty < 0 {
cpcty = 0
}

updatedUserGroup := make([]string, 0, cpcty)

for email, slackID := range u.cache {
Expand Down
8 changes: 5 additions & 3 deletions adapters/slack/usergroup/usergroup_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import (
gosync "github.com/ovotech/go-sync"
)

var group = flag.String("group", "", "Enter the user group ID to adjust group membership of in the Integration test")
var email = flag.String("email", "", "Enter the email of a user to add to the user group membership of in the Integration test")
var key = os.Getenv("SLACK_API_KEY")
var (
group = flag.String("group", "", "Enter the user group ID to adjust group membership of in the Integration test")
email = flag.String("email", "", "Enter the email of a user to add to the user group membership of in the Integration test")
key = os.Getenv("SLACK_API_KEY")
)

func TestIntegration(t *testing.T) {
if *group == "" {
Expand Down

0 comments on commit 48b581a

Please sign in to comment.