Skip to content

Commit b8b9251

Browse files
committed
fixed linter errors
1 parent 3baf63f commit b8b9251

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

api/organizations.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ func (c *Client) ListOrganizations() ([]Organization, error) {
1414
}
1515

1616
res := make([]Organization, len(orgs))
17-
for i, o := range orgs {
18-
res[i] = o
19-
}
17+
copy(res, orgs)
2018
return res, nil
2119
}

cli/cmd/team_add_member.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func AddAddTeamMemberCmd(team *cobra.Command, opts *GlobalOptions) {
4747
}
4848
t.cmd.RunE = t.RunE
4949
t.cmd.Flags().StringVarP(&t.Opts.Email, "email", "e", "", "Team member email")
50-
t.cmd.MarkFlagRequired("email")
50+
_ = t.cmd.MarkFlagRequired("email")
5151
t.cmd.Flags().IntVarP(&t.Opts.Role, "role", "r", int(cs.RoleAdmin), "Team member role 0=admin, 1=member")
5252
AddCmd(team, t.cmd)
5353
}

cli/cmd/team_remove.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type RemoveTeamCmd struct {
1919

2020
type RemoveTeamOpts struct {
2121
*GlobalOptions
22-
name string
2322
}
2423

2524
func AddRemoveTeamCmd(team *cobra.Command, opts *GlobalOptions) {

cli/cmd/team_remove_member.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func AddRemoveTeamMemberCmd(team *cobra.Command, opts *GlobalOptions) {
4141
ClientFactory: NewClient,
4242
}
4343
res.cmd.Flags().IntVarP(&res.Opts.UserId, "user", "u", 0, "Team member user ID")
44-
res.cmd.MarkFlagRequired("user")
44+
_ = res.cmd.MarkFlagRequired("user")
4545
res.cmd.RunE = res.RunE
4646
AddCmd(team, res.cmd)
4747
}

0 commit comments

Comments
 (0)