Skip to content

Commit

Permalink
style: Remove unuseds and enable unused linter (#3730)
Browse files Browse the repository at this point in the history
See #3565

Signed-off-by: Bryon Nevis <[email protected]>

Co-authored-by: Cloud Tsai <[email protected]>
  • Loading branch information
bnevis-i and cloudxxx8 authored Sep 29, 2021
1 parent 87e8ed7 commit cbc80a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ linters:
- gosimple
- ineffassign
- staticcheck
- unused
- varcheck
10 changes: 0 additions & 10 deletions internal/security/bootstrapper/command/setupacl/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,6 @@ func (c *cmd) GetCommandName() string {
return CommandName
}

func (c *cmd) getRegistryBaseURL() (string, error) {
baseURL := fmt.Sprintf("%s://%s:%d", c.configuration.StageGate.Registry.ACL.Protocol,
c.configuration.StageGate.Registry.Host, c.configuration.StageGate.Registry.Port)
_, err := url.Parse(baseURL)
if err != nil {
return "", err
}
return baseURL, nil
}

// reSetup calls when anything is running 2nd time or later, in order to re-set up the registry ACL
func (c *cmd) reSetup() error {
// although we may have done setup ACL successfully already previous times,
Expand Down

0 comments on commit cbc80a6

Please sign in to comment.