mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-04 20:59:02 -04:00
go: remove unused parameters
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
822d7823f8
commit
0036b24266
106 changed files with 320 additions and 323 deletions
|
@ -69,7 +69,7 @@ Most developers won't have the required permissions to use this command.
|
|||
return cmd
|
||||
}
|
||||
|
||||
func runRemove(cmd *cobra.Command, args []string) (retErr error) {
|
||||
func runRemove(cmd *cobra.Command, _ []string) (retErr error) {
|
||||
flags, err := parseRmFlags(cmd)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -89,7 +89,7 @@ func runRemove(cmd *cobra.Command, args []string) (retErr error) {
|
|||
}
|
||||
|
||||
log.Debugf("Creating AWS client")
|
||||
awsClient, err := newAWSClient(cmd.Context(), flags.region)
|
||||
awsClient, err := newAWSClient()
|
||||
if err != nil {
|
||||
return fmt.Errorf("creating AWS client: %w", err)
|
||||
}
|
||||
|
@ -393,7 +393,7 @@ type awsClient struct {
|
|||
|
||||
// newAWSClient creates a new awsClient.
|
||||
// Requires IAM permission 'ec2:DeregisterImage'.
|
||||
func newAWSClient(ctx context.Context, region string) (*awsClient, error) {
|
||||
func newAWSClient() (*awsClient, error) {
|
||||
return &awsClient{}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue