Skip to content

Commit

Permalink
Enables unparam linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Oct 20, 2021
1 parent 1b0103e commit 561f2fd
Show file tree
Hide file tree
Showing 27 changed files with 41 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ linters:
- staticcheck
- structcheck
- unconvert
# - unparam
- unparam
- varcheck
- vet

Expand Down
2 changes: 1 addition & 1 deletion internal/service/amplify/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func waitDomainAssociationCreated(conn *amplify.Amplify, appID, domainName strin
return nil, err
}

func waitDomainAssociationVerified(conn *amplify.Amplify, appID, domainName string) (*amplify.DomainAssociation, error) {
func waitDomainAssociationVerified(conn *amplify.Amplify, appID, domainName string) (*amplify.DomainAssociation, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{amplify.DomainStatusUpdating, amplify.DomainStatusInProgress, amplify.DomainStatusPendingVerification},
Target: []string{amplify.DomainStatusPendingDeployment, amplify.DomainStatusAvailable},
Expand Down
4 changes: 2 additions & 2 deletions internal/service/appstream/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func waitStackStateDeleted(ctx context.Context, conn *appstream.AppStream, name
}

// waitFleetStateRunning waits for a fleet running
func waitFleetStateRunning(ctx context.Context, conn *appstream.AppStream, name string) (*appstream.Fleet, error) {
func waitFleetStateRunning(ctx context.Context, conn *appstream.AppStream, name string) (*appstream.Fleet, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{appstream.FleetStateStarting},
Target: []string{appstream.FleetStateRunning},
Expand Down Expand Up @@ -81,7 +81,7 @@ func waitFleetStateRunning(ctx context.Context, conn *appstream.AppStream, name
}

// waitFleetStateStopped waits for a fleet stopped
func waitFleetStateStopped(ctx context.Context, conn *appstream.AppStream, name string) (*appstream.Fleet, error) {
func waitFleetStateStopped(ctx context.Context, conn *appstream.AppStream, name string) (*appstream.Fleet, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{appstream.FleetStateStopping},
Target: []string{appstream.FleetStateStopped},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/budgets/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (
actionAvailableTimeout = 2 * time.Minute
)

func waitActionAvailable(conn *budgets.Budgets, accountID, actionID, budgetName string) (*budgets.Action, error) {
func waitActionAvailable(conn *budgets.Budgets, accountID, actionID, budgetName string) (*budgets.Action, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{
budgets.ActionStatusExecutionInProgress,
Expand Down
2 changes: 1 addition & 1 deletion internal/service/codestarconnections/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
)

// waitHostPendingOrAvailable waits for a Host to return PENDING or AVAILABLE
func waitHostPendingOrAvailable(conn *codestarconnections.CodeStarConnections, hostARN string) (*codestarconnections.Host, error) {
func waitHostPendingOrAvailable(conn *codestarconnections.CodeStarConnections, hostARN string) (*codestarconnections.Host, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{"VPC_CONFIG_INITIALIZING"},
Target: []string{
Expand Down
4 changes: 2 additions & 2 deletions internal/service/dynamodb/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func waitDynamoDBKinesisStreamingDestinationDisabled(ctx context.Context, conn *
return err
}

func waitDynamoDBTableActive(conn *dynamodb.DynamoDB, tableName string) (*dynamodb.TableDescription, error) {
func waitDynamoDBTableActive(conn *dynamodb.DynamoDB, tableName string) (*dynamodb.TableDescription, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{
dynamodb.TableStatusCreating,
Expand Down Expand Up @@ -134,7 +134,7 @@ func waitDynamoDBReplicaDeleted(conn *dynamodb.DynamoDB, tableName, region strin
return nil, err
}

func waitDynamoDBGSIActive(conn *dynamodb.DynamoDB, tableName, indexName string) (*dynamodb.GlobalSecondaryIndexDescription, error) {
func waitDynamoDBGSIActive(conn *dynamodb.DynamoDB, tableName, indexName string) (*dynamodb.GlobalSecondaryIndexDescription, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{
dynamodb.IndexStatusCreating,
Expand Down
2 changes: 1 addition & 1 deletion internal/service/ecs/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func waitServiceDescribeReady(conn *ecs.ECS, id, cluster string) (*ecs.DescribeS
return nil, err
}

func waitClusterAvailable(conn *ecs.ECS, arn string) (*ecs.Cluster, error) {
func waitClusterAvailable(conn *ecs.ECS, arn string) (*ecs.Cluster, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{"PROVISIONING"},
Target: []string{"ACTIVE"},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/efs/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func waitAccessPointDeleted(conn *efs.EFS, accessPointId string) (*efs.AccessPoi
return nil, err
}

func waitFileSystemAvailable(conn *efs.EFS, fileSystemID string) (*efs.FileSystemDescription, error) {
func waitFileSystemAvailable(conn *efs.EFS, fileSystemID string) (*efs.FileSystemDescription, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{efs.LifeCycleStateCreating, efs.LifeCycleStateUpdating},
Target: []string{efs.LifeCycleStateAvailable},
Expand Down
8 changes: 4 additions & 4 deletions internal/service/eks/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func waitClusterDeleted(conn *eks.EKS, name string, timeout time.Duration) (*eks
return nil, err
}

func waitClusterUpdateSuccessful(conn *eks.EKS, name, id string, timeout time.Duration) (*eks.Update, error) {
func waitClusterUpdateSuccessful(conn *eks.EKS, name, id string, timeout time.Duration) (*eks.Update, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{eks.UpdateStatusInProgress},
Target: []string{eks.UpdateStatusSuccessful},
Expand Down Expand Up @@ -197,7 +197,7 @@ func waitNodegroupDeleted(ctx context.Context, conn *eks.EKS, clusterName, nodeG
Timeout: timeout,
}

outputRaw, err := stateConf.WaitForState()
outputRaw, err := stateConf.WaitForStateContext(ctx)

if output, ok := outputRaw.(*eks.Nodegroup); ok {
if status, health := aws.StringValue(output.Status), output.Health; status == eks.NodegroupStatusDeleteFailed && health != nil {
Expand All @@ -210,15 +210,15 @@ func waitNodegroupDeleted(ctx context.Context, conn *eks.EKS, clusterName, nodeG
return nil, err
}

func waitNodegroupUpdateSuccessful(ctx context.Context, conn *eks.EKS, clusterName, nodeGroupName, id string, timeout time.Duration) (*eks.Update, error) {
func waitNodegroupUpdateSuccessful(ctx context.Context, conn *eks.EKS, clusterName, nodeGroupName, id string, timeout time.Duration) (*eks.Update, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{eks.UpdateStatusInProgress},
Target: []string{eks.UpdateStatusSuccessful},
Refresh: statusNodegroupUpdate(conn, clusterName, nodeGroupName, id),
Timeout: timeout,
}

outputRaw, err := stateConf.WaitForState()
outputRaw, err := stateConf.WaitForStateContext(ctx)

if output, ok := outputRaw.(*eks.Update); ok {
if status := aws.StringValue(output.Status); status == eks.UpdateStatusCancelled || status == eks.UpdateStatusFailed {
Expand Down
2 changes: 1 addition & 1 deletion internal/service/elasticache/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const (
)

// waitCacheClusterAvailable waits for a Cache Cluster to return Available
func waitCacheClusterAvailable(conn *elasticache.ElastiCache, cacheClusterID string, timeout time.Duration) (*elasticache.CacheCluster, error) {
func waitCacheClusterAvailable(conn *elasticache.ElastiCache, cacheClusterID string, timeout time.Duration) (*elasticache.CacheCluster, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{
CacheClusterStatusCreating,
Expand Down
2 changes: 1 addition & 1 deletion internal/service/elbv2/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
)

// waitLoadBalancerActive waits for a Load Balancer to return active
func waitLoadBalancerActive(conn *elbv2.ELBV2, arn string, timeout time.Duration) (*elbv2.LoadBalancer, error) {
func waitLoadBalancerActive(conn *elbv2.ELBV2, arn string, timeout time.Duration) (*elbv2.LoadBalancer, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{elbv2.LoadBalancerStateEnumProvisioning, elbv2.LoadBalancerStateEnumFailed},
Target: []string{elbv2.LoadBalancerStateEnumActive},
Expand Down
5 changes: 2 additions & 3 deletions internal/service/firehose/delivery_stream_migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestMigrateState_empty(t *testing.T) {

// should handle non-nil but empty
is = &terraform.InstanceState{}
_, err = resourceInstanceMigrateState(0, is, meta)
_, err = resourceInstanceMigrateState(0, is)

if err != nil {
t.Fatalf("err: %#v", err)
Expand Down Expand Up @@ -126,8 +126,7 @@ func migrateInstanceStateV0toV1(is *terraform.InstanceState) (*terraform.Instanc
return is, nil
}

func resourceInstanceMigrateState(
v int, is *terraform.InstanceState, meta interface{}) (*terraform.InstanceState, error) {
func resourceInstanceMigrateState(v int, is *terraform.InstanceState) (*terraform.InstanceState, error) {
switch v {
case 0:
log.Println("[INFO] Found AWS Instance State v0; migrating to v1")
Expand Down
2 changes: 1 addition & 1 deletion internal/service/firehose/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func waitDeliveryStreamDeleted(conn *firehose.Firehose, name string) (*firehose.
return nil, err
}

func waitDeliveryStreamEncryptionEnabled(conn *firehose.Firehose, name string) (*firehose.DeliveryStreamEncryptionConfiguration, error) {
func waitDeliveryStreamEncryptionEnabled(conn *firehose.Firehose, name string) (*firehose.DeliveryStreamEncryptionConfiguration, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{firehose.DeliveryStreamEncryptionStatusEnabling},
Target: []string{firehose.DeliveryStreamEncryptionStatusEnabled},
Expand Down
8 changes: 4 additions & 4 deletions internal/service/fsx/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
backupDeletedTimeout = 10 * time.Minute
)

func waitAdministrativeActionCompleted(conn *fsx.FSx, fsID, actionType string, timeout time.Duration) (*fsx.AdministrativeAction, error) {
func waitAdministrativeActionCompleted(conn *fsx.FSx, fsID, actionType string, timeout time.Duration) (*fsx.AdministrativeAction, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{fsx.StatusInProgress, fsx.StatusPending},
Target: []string{fsx.StatusCompleted, fsx.StatusUpdatedOptimizing},
Expand Down Expand Up @@ -71,7 +71,7 @@ func waitBackupDeleted(conn *fsx.FSx, id string) (*fsx.Backup, error) {
return nil, err
}

func waitFileSystemCreated(conn *fsx.FSx, id string, timeout time.Duration) (*fsx.FileSystem, error) {
func waitFileSystemCreated(conn *fsx.FSx, id string, timeout time.Duration) (*fsx.FileSystem, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{fsx.FileSystemLifecycleCreating},
Target: []string{fsx.FileSystemLifecycleAvailable},
Expand All @@ -93,7 +93,7 @@ func waitFileSystemCreated(conn *fsx.FSx, id string, timeout time.Duration) (*fs
return nil, err
}

func waitFileSystemUpdated(conn *fsx.FSx, id string, timeout time.Duration) (*fsx.FileSystem, error) {
func waitFileSystemUpdated(conn *fsx.FSx, id string, timeout time.Duration) (*fsx.FileSystem, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{fsx.FileSystemLifecycleUpdating},
Target: []string{fsx.FileSystemLifecycleAvailable},
Expand All @@ -115,7 +115,7 @@ func waitFileSystemUpdated(conn *fsx.FSx, id string, timeout time.Duration) (*fs
return nil, err
}

func waitFileSystemDeleted(conn *fsx.FSx, id string, timeout time.Duration) (*fsx.FileSystem, error) {
func waitFileSystemDeleted(conn *fsx.FSx, id string, timeout time.Duration) (*fsx.FileSystem, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{fsx.FileSystemLifecycleAvailable, fsx.FileSystemLifecycleDeleting},
Target: []string{},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/globalaccelerator/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

// waitAcceleratorDeployed waits for an Accelerator to return Deployed
func waitAcceleratorDeployed(conn *globalaccelerator.GlobalAccelerator, arn string, timeout time.Duration) (*globalaccelerator.Accelerator, error) {
func waitAcceleratorDeployed(conn *globalaccelerator.GlobalAccelerator, arn string, timeout time.Duration) (*globalaccelerator.Accelerator, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{globalaccelerator.AcceleratorStatusInProgress},
Target: []string{globalaccelerator.AcceleratorStatusDeployed},
Expand Down
4 changes: 2 additions & 2 deletions internal/service/glue/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func waitRegistryDeleted(conn *glue.Glue, registryID string) (*glue.GetRegistryO
}

// waitSchemaAvailable waits for a Schema to return Available
func waitSchemaAvailable(conn *glue.Glue, registryID string) (*glue.GetSchemaOutput, error) {
func waitSchemaAvailable(conn *glue.Glue, registryID string) (*glue.GetSchemaOutput, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{glue.SchemaStatusPending},
Target: []string{glue.SchemaStatusAvailable},
Expand Down Expand Up @@ -112,7 +112,7 @@ func waitSchemaVersionAvailable(conn *glue.Glue, registryID string) (*glue.GetSc
}

// waitTriggerCreated waits for a Trigger to return Created
func waitTriggerCreated(conn *glue.Glue, triggerName string) (*glue.GetTriggerOutput, error) {
func waitTriggerCreated(conn *glue.Glue, triggerName string) (*glue.GetTriggerOutput, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{
glue.TriggerStateActivating,
Expand Down
2 changes: 1 addition & 1 deletion internal/service/kafka/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func waitClusterDeleted(conn *kafka.Kafka, arn string, timeout time.Duration) (*
return nil, err
}

func waitClusterOperationCompleted(conn *kafka.Kafka, arn string, timeout time.Duration) (*kafka.ClusterOperationInfo, error) {
func waitClusterOperationCompleted(conn *kafka.Kafka, arn string, timeout time.Duration) (*kafka.ClusterOperationInfo, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{ClusterOperationStatePending, ClusterOperationStateUpdateInProgress},
Target: []string{ClusterOperationStateUpdateComplete},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/kinesisanalytics/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func waitApplicationStopped(conn *kinesisanalytics.KinesisAnalytics, name string
}

// waitApplicationUpdated waits for an Application to update
func waitApplicationUpdated(conn *kinesisanalytics.KinesisAnalytics, name string) (*kinesisanalytics.ApplicationDetail, error) {
func waitApplicationUpdated(conn *kinesisanalytics.KinesisAnalytics, name string) (*kinesisanalytics.ApplicationDetail, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{kinesisanalytics.ApplicationStatusUpdating},
Target: []string{kinesisanalytics.ApplicationStatusReady, kinesisanalytics.ApplicationStatusRunning},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/kinesisanalyticsv2/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func waitApplicationStopped(conn *kinesisanalyticsv2.KinesisAnalyticsV2, name st
}

// waitApplicationUpdated waits for an Application to return Deleted
func waitApplicationUpdated(conn *kinesisanalyticsv2.KinesisAnalyticsV2, name string) (*kinesisanalyticsv2.ApplicationDetail, error) {
func waitApplicationUpdated(conn *kinesisanalyticsv2.KinesisAnalyticsV2, name string) (*kinesisanalyticsv2.ApplicationDetail, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{kinesisanalyticsv2.ApplicationStatusUpdating},
Target: []string{kinesisanalyticsv2.ApplicationStatusReady, kinesisanalyticsv2.ApplicationStatusRunning},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/lexmodelbuilding/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
lexSlotTypeDeletedTimeout = 5 * time.Minute
)

func waitBotVersionCreated(conn *lexmodelbuildingservice.LexModelBuildingService, name, version string, timeout time.Duration) (*lexmodelbuildingservice.GetBotOutput, error) {
func waitBotVersionCreated(conn *lexmodelbuildingservice.LexModelBuildingService, name, version string, timeout time.Duration) (*lexmodelbuildingservice.GetBotOutput, error) { //nolint:unparam
stateChangeConf := &resource.StateChangeConf{
Pending: []string{lexmodelbuildingservice.StatusBuilding},
Target: []string{
Expand Down
2 changes: 1 addition & 1 deletion internal/service/macie2/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
)

// waitMemberInvited waits for an AdminAccount to return Invited, Enabled and Paused
func waitMemberInvited(ctx context.Context, conn *macie2.Macie2, adminAccountID string) (*macie2.Member, error) {
func waitMemberInvited(ctx context.Context, conn *macie2.Macie2, adminAccountID string) (*macie2.Member, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{macie2.RelationshipStatusCreated, macie2.RelationshipStatusEmailVerificationInProgress},
Target: []string{macie2.RelationshipStatusInvited, macie2.RelationshipStatusEnabled, macie2.RelationshipStatusPaused},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/rds/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func waitEventSubscriptionUpdated(conn *rds.RDS, id string, timeout time.Duratio
}

// waitDBProxyEndpointAvailable waits for a DBProxyEndpoint to return Available
func waitDBProxyEndpointAvailable(conn *rds.RDS, id string, timeout time.Duration) (*rds.DBProxyEndpoint, error) {
func waitDBProxyEndpointAvailable(conn *rds.RDS, id string, timeout time.Duration) (*rds.DBProxyEndpoint, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{
rds.DBProxyEndpointStatusCreating,
Expand Down
6 changes: 3 additions & 3 deletions internal/service/route53/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
keySigningKeyStatusTimeout = 5 * time.Minute
)

func waitChangeInfoStatusInsync(conn *route53.Route53, changeID string) (*route53.ChangeInfo, error) {
func waitChangeInfoStatusInsync(conn *route53.Route53, changeID string) (*route53.ChangeInfo, error) { //nolint:unparam
rand.Seed(time.Now().UTC().UnixNano())

// Route53 is vulnerable to throttling so longer delays, poll intervals helps significantly to avoid
Expand All @@ -47,7 +47,7 @@ func waitChangeInfoStatusInsync(conn *route53.Route53, changeID string) (*route5
return nil, err
}

func waitHostedZoneDNSSECStatusUpdated(conn *route53.Route53, hostedZoneID string, status string) (*route53.DNSSECStatus, error) {
func waitHostedZoneDNSSECStatusUpdated(conn *route53.Route53, hostedZoneID string, status string) (*route53.DNSSECStatus, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Target: []string{status},
Refresh: statusHostedZoneDNSSEC(conn, hostedZoneID),
Expand Down Expand Up @@ -79,7 +79,7 @@ func waitHostedZoneDNSSECStatusUpdated(conn *route53.Route53, hostedZoneID strin
return nil, err
}

func waitKeySigningKeyStatusUpdated(conn *route53.Route53, hostedZoneID string, name string, status string) (*route53.KeySigningKey, error) {
func waitKeySigningKeyStatusUpdated(conn *route53.Route53, hostedZoneID string, name string, status string) (*route53.KeySigningKey, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Target: []string{status},
Refresh: statusKeySigningKey(conn, hostedZoneID, name),
Expand Down
2 changes: 1 addition & 1 deletion internal/service/route53recoverycontrolconfig/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func waitRoute53RecoveryControlConfigControlPanelDeleted(conn *r53rcc.Route53Rec
return nil, err
}

func waitRoute53RecoveryControlConfigSafetyRuleCreated(conn *r53rcc.Route53RecoveryControlConfig, safetyRuleArn string) (*r53rcc.DescribeSafetyRuleOutput, error) {
func waitRoute53RecoveryControlConfigSafetyRuleCreated(conn *r53rcc.Route53RecoveryControlConfig, safetyRuleArn string) (*r53rcc.DescribeSafetyRuleOutput, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{r53rcc.StatusPending},
Target: []string{r53rcc.StatusDeployed},
Expand Down
2 changes: 1 addition & 1 deletion internal/service/ssm/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func waitDocumentDeleted(conn *ssm.SSM, name string) (*ssm.DocumentDescription,
}

// waitDocumentActive waits for an Document to return Active
func waitDocumentActive(conn *ssm.SSM, name string) (*ssm.DocumentDescription, error) {
func waitDocumentActive(conn *ssm.SSM, name string) (*ssm.DocumentDescription, error) { //nolint:unparam
stateConf := &resource.StateChangeConf{
Pending: []string{ssm.DocumentStatusCreating, ssm.DocumentStatusUpdating},
Target: []string{ssm.DocumentStatusActive},
Expand Down
Loading

0 comments on commit 561f2fd

Please sign in to comment.