From 4a86a1233ca3330073fbeaa814d86fbc2235b990 Mon Sep 17 00:00:00 2001 From: yy Date: Mon, 19 Jan 2026 22:46:12 +0900 Subject: [PATCH] fix: typos in comments (#3691) Signed-off-by: Yohei Yamamoto --- internal/cloud/cloud_integration.go | 2 +- internal/command/clistate/state.go | 2 +- internal/command/plan_test.go | 2 +- internal/communicator/ssh/communicator.go | 2 +- internal/legacy/helper/schema/field_reader_map.go | 2 +- internal/tofu/context_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/cloud/cloud_integration.go b/internal/cloud/cloud_integration.go index da1eaf0abd..bc85155113 100644 --- a/internal/cloud/cloud_integration.go +++ b/internal/cloud/cloud_integration.go @@ -16,7 +16,7 @@ import ( "github.com/opentofu/opentofu/internal/backend" ) -// IntegrationOutputWriter is an interface used to to write output tailored for +// IntegrationOutputWriter is an interface used to write output tailored for // Terraform Cloud integrations type IntegrationOutputWriter interface { End() diff --git a/internal/command/clistate/state.go b/internal/command/clistate/state.go index c649ecf43e..949cfa6905 100644 --- a/internal/command/clistate/state.go +++ b/internal/command/clistate/state.go @@ -82,7 +82,7 @@ var _ Locker = (*locker)(nil) // Create a new Locker. // This Locker uses state.LockWithContext to retry the lock until the provided -// timeout is reached, or the context is canceled. Lock progress will be be +// timeout is reached, or the context is canceled. Lock progress will be // reported to the user through the provided UI. func NewLocker(timeout time.Duration, view views.StateLocker) Locker { return &locker{ diff --git a/internal/command/plan_test.go b/internal/command/plan_test.go index f5bcc50b7c..fdd19a7797 100644 --- a/internal/command/plan_test.go +++ b/internal/command/plan_test.go @@ -1018,7 +1018,7 @@ func TestPlan_resource_variable_inputs(t *testing.T) { // Because this potential problem is in the collaboration between three separate // subsystems, we test it here so we can exercise all three in a relatively // realistic way. This is therefore an integration test of these three -// components working together, rather than a test of of the plan command +// components working together, rather than a test of the plan command // specifically. func TestPlan_withInvalidReferencesInTry(t *testing.T) { td := t.TempDir() diff --git a/internal/communicator/ssh/communicator.go b/internal/communicator/ssh/communicator.go index d4c0d7af4f..1ef9417dd1 100644 --- a/internal/communicator/ssh/communicator.go +++ b/internal/communicator/ssh/communicator.go @@ -48,7 +48,7 @@ var ( // enable ssh keepalive probes by default keepAliveInterval = 2 * time.Second - // max time to wait for for a KeepAlive response before considering the + // max time to wait for a KeepAlive response before considering the // connection to be dead. maxKeepAliveDelay = 120 * time.Second ) diff --git a/internal/legacy/helper/schema/field_reader_map.go b/internal/legacy/helper/schema/field_reader_map.go index b3a1cbca5a..fa156d9fee 100644 --- a/internal/legacy/helper/schema/field_reader_map.go +++ b/internal/legacy/helper/schema/field_reader_map.go @@ -47,7 +47,7 @@ func (r *MapFieldReader) readMap(k string, schema *Schema) (FieldReadResult, err // If the name of the map field is directly in the map with an // empty string, it means that the map is being deleted, so mark - // that is is set. + // that is set. if v, ok := r.Map.Access(k); ok && v == "" { resultSet = true } diff --git a/internal/tofu/context_test.go b/internal/tofu/context_test.go index cc8e56f9a8..d3c981953c 100644 --- a/internal/tofu/context_test.go +++ b/internal/tofu/context_test.go @@ -1076,7 +1076,7 @@ func assertDiagnosticsMatch(t testing.TB, got, want tfdiags.Diagnostics) { } } -// logDiagnostics is a test helper that logs the given diagnostics to to the +// logDiagnostics is a test helper that logs the given diagnostics to the // given testing.T using t.Log, in a way that is hopefully useful in debugging // a test. It does not generate any errors or fail the test. See // assertNoDiagnostics and assertNoErrors for more specific helpers that can