Skip to content

Commit

Permalink
Merge pull request #25983 from sebhcp/fix-typo
Browse files Browse the repository at this point in the history
fix typos in code comments
  • Loading branch information
justinretzolk authored Jul 26, 2022
2 parents daf6ea6 + 3823359 commit 5fd46ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/conns/envvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func GetEnvVarWithDefault(variable string, defaultValue string) string {

// RequireOneOfEnvVar verifies that at least one environment variable is non-empty or returns an error.
//
// If at lease one environment variable is non-empty, returns the first name and value.
// If at least one environment variable is non-empty, returns the first name and value.
func RequireOneOfEnvVar(names []string, usageMessage string) (string, string, error) {
for _, variable := range names {
value := os.Getenv(variable)
Expand All @@ -111,7 +111,7 @@ func RequireEnvVar(name string, usageMessage string) (string, error) {

// FailIfAllEnvVarEmpty verifies that at least one environment variable is non-empty or fails the test.
//
// If at lease one environment variable is non-empty, returns the first name and value.
// If at least one environment variable is non-empty, returns the first name and value.
func FailIfAllEnvVarEmpty(t testing.T, names []string, usageMessage string) (string, string) {
t.Helper()

Expand Down Expand Up @@ -156,7 +156,7 @@ func SkipIfEnvVarEmpty(t testing.T, name string, usageMessage string) string {

// SkipIfAllEnvVarEmpty verifies that at least one environment variable is non-empty or skips the test.
//
// If at lease one environment variable is non-empty, returns the first name and value.
// If at least one environment variable is non-empty, returns the first name and value.
func SkipIfAllEnvVarEmpty(t testing.T, names []string, usageMessage string) (string, string) {
t.Helper()

Expand Down

0 comments on commit 5fd46ee

Please sign in to comment.