mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 00:50:38 -05: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
|
|
@ -47,7 +47,7 @@ If you've build a local image, use a local override instead of adding a new vers
|
|||
return cmd
|
||||
}
|
||||
|
||||
func runAdd(cmd *cobra.Command, args []string) (retErr error) {
|
||||
func runAdd(cmd *cobra.Command, _ []string) (retErr error) {
|
||||
flags, err := parseAddFlags(cmd)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ func newLatestCmd() *cobra.Command {
|
|||
return cmd
|
||||
}
|
||||
|
||||
func runLatest(cmd *cobra.Command, args []string) error {
|
||||
func runLatest(cmd *cobra.Command, _ []string) error {
|
||||
flags, err := parseLatestFlags(cmd)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ func newListCmd() *cobra.Command {
|
|||
return cmd
|
||||
}
|
||||
|
||||
func runList(cmd *cobra.Command, args []string) error {
|
||||
func runList(cmd *cobra.Command, _ []string) error {
|
||||
flags, err := parseListFlags(cmd)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ func signalContext(ctx context.Context, sig os.Signal) (context.Context, context
|
|||
return sigCtx, cancelFunc
|
||||
}
|
||||
|
||||
func preRunRoot(cmd *cobra.Command, args []string) {
|
||||
func preRunRoot(cmd *cobra.Command, _ []string) {
|
||||
cmd.SilenceUsage = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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