chore: fix repetitive words (#1472)

Signed-off-by: alwayshang <zhanghonghao@outlook.com>
This commit is contained in:
alwayshang 2024-04-07 19:48:13 +08:00 committed by GitHub
parent 650ab6db8f
commit fd3736bd99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -503,7 +503,7 @@ func extractChdirOption(args []string) (string, []string, error) {
return argValue, newArgs, nil
}
// Creates the the configuration directory.
// Creates the configuration directory.
// `configDir` should refer to `~/.terraform.d`, `$XDG_CONFIG_HOME/opentofu` or its equivalent
// on non-UNIX platforms.
func mkConfigDir(configDir string) error {

View File

@ -637,7 +637,7 @@ func TestLocal_planDestroy_withDataSources(t *testing.T) {
t.Fatal("plan should not be empty")
}
// Data source should still exist in the the plan file
// Data source should still exist in the plan file
plan := testReadPlan(t, planPath)
if len(plan.Changes.Resources) != 2 {
t.Fatalf("Expected exactly 1 resource for destruction, %d given: %q",

View File

@ -14,7 +14,7 @@ import (
"github.com/opentofu/opentofu/internal/configs"
)
// State is a container for state tracking of all of the the checks declared in
// State is a container for state tracking of all of the checks declared in
// a particular OpenTofu configuration and their current statuses.
//
// A State object is mutable during plan and apply operations but should

View File

@ -234,7 +234,7 @@ func TestPlanOnlyInAutomation(t *testing.T) {
}
// Because we're running with TF_IN_AUTOMATION set, we should not see
// any mention of the the "tofu apply" command in the output.
// any mention of the "tofu apply" command in the output.
if strings.Contains(stdout, "tofu apply") {
t.Errorf("unwanted mention of \"tofu apply\" in plan output\n%s", stdout)
}

View File

@ -893,7 +893,7 @@ func UnmarshalActions(actions []string) plans.Action {
// indexes.
//
// JavaScript (or similar dynamic language) consumers of these values can
// iterate over the the steps starting from the root object to reach the
// iterate over the steps starting from the root object to reach the
// value that each path is describing.
func encodePaths(pathSet cty.PathSet) (json.RawMessage, error) {
if pathSet.Empty() {

View File

@ -709,7 +709,7 @@ func (m *Meta) backendMigrateState_S_TFC(opts *backendMigrateOpts, sourceWorkspa
// * Specifically for a migration from the "remote" backend using 'prefix', we will
// instead 'migrate' the workspaces using a pattern based on the old prefix+name,
// not allowing a user to accidentally input the wrong pattern to line up with
// what the the remote backend was already using before (which presumably already
// what the remote backend was already using before (which presumably already
// meets the naming considerations for Terraform Cloud).
// In other words, this is a fast-track migration path from the remote backend, retaining
// how things already are in Terraform Cloud with no user intervention needed.

View File

@ -64,7 +64,7 @@ var (
)
// All the locationes from the mockRegistry start with a file:// scheme. If
// the the location string here doesn't have a scheme, the mockRegistry will
// the location string here doesn't have a scheme, the mockRegistry will
// find the absolute path and return a complete URL.
var testMods = map[string][]testMod{
"registry/foo/bar": {{