Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix go fmt issues #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion yandex/internal/mutexkv/mutexkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
// MutexKV is a simple key/value store for arbitrary mutexes. It can be used to
// serialize changes across arbitrary collaborators that share knowledge of the
// keys they must serialize on.
//
type MutexKV struct {
lock sync.Mutex
store map[string]*sync.Mutex
Expand Down
6 changes: 3 additions & 3 deletions yandex/resource_yandex_storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -1904,9 +1904,9 @@ func waitCorsDeleted(s3Client *s3.S3, bucket string) error {
}

// Returns true if the error matches all these conditions:
// * err is of type awserr.Error
// * Error.Code() matches code
// * Error.Message() contains message
// - err is of type awserr.Error
// - Error.Code() matches code
// - Error.Message() contains message
func isAWSErr(err error, code string, message string) bool {
if err, ok := err.(awserr.Error); ok {
return err.Code() == code && strings.Contains(err.Message(), message)
Expand Down
24 changes: 12 additions & 12 deletions yandex/resource_yandex_storage_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ func testAccCheckStorageBucketSSE(n string, config *s3.ServerSideEncryptionConfi
}
}

//// These need a bit of randomness as the name can only be used once globally
// // These need a bit of randomness as the name can only be used once globally
func testAccBucketName(randInt int) string {
return fmt.Sprintf("tf-test-bucket-%d", randInt)
}
Expand Down Expand Up @@ -1293,21 +1293,21 @@ func (b testAccStorageBucketConfigBuilder) asAdmin() testAccStorageBucketConfigB
render creates new bucket config. For visual representation, note the following
example of how it might look after calling this method:

resource "yandex_storage_bucket" "test" {
bucket = "tf-test-bucket-%d"
resource "yandex_storage_bucket" "test" {
bucket = "tf-test-bucket-%d"

access_key = yandex_iam_service_account_static_access_key.sa-key.access_key
secret_key = yandex_iam_service_account_static_access_key.sa-key.secret_key
access_key = yandex_iam_service_account_static_access_key.sa-key.access_key
secret_key = yandex_iam_service_account_static_access_key.sa-key.secret_key

default_storage_class = "STANDARD"
default_storage_class = "STANDARD"

anonymous_access_flags {
list = false
read = false
}
anonymous_access_flags {
list = false
read = false
}

{ bucket statements on each line }
}
{ bucket statements on each line }
}

{ after bucket statements on each line }

Expand Down