Skip to content

Commit d8bac16

Browse files
committed
fixup linting and formatting
1 parent dd63538 commit d8bac16

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

server/core/config/raw/team_authz.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ func (t *TeamAuthz) ToValid() valid.TeamAuthz {
1212
v.Command = t.Command
1313
v.Args = make([]string, 0)
1414
if t.Args != nil {
15-
for _, arg := range t.Args {
16-
v.Args = append(v.Args, arg)
17-
}
15+
v.Args = append(v.Args, t.Args...)
1816
}
1917

2018
return v

server/events/command/team_allowlist_checker.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package command
22

33
import (
4-
"github.com/runatlantis/atlantis/server/events/models"
54
"strings"
5+
6+
"github.com/runatlantis/atlantis/server/events/models"
67
)
78

89
// Wildcard matches all teams and all commands

server/events/command/team_allowlist_checker_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package command_test
22

33
import (
4+
"testing"
5+
46
"github.com/runatlantis/atlantis/server/events/command"
57
"github.com/runatlantis/atlantis/server/events/models"
6-
"testing"
78

89
. "github.com/runatlantis/atlantis/testing"
910
)

server/events/external_team_allowlist_checker.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package events
33
import (
44
"context"
55
"fmt"
6-
"github.com/runatlantis/atlantis/server/events/models"
76
"os"
87
"os/exec"
98
"strings"
9+
10+
"github.com/runatlantis/atlantis/server/events/models"
1011
)
1112

1213
type ExternalTeamAllowlistChecker struct {

0 commit comments

Comments
 (0)