Skip to content

Commit

Permalink
add to validator repo
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow committed Nov 27, 2019
1 parent 910b83c commit 8310f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/validator/storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func expandCors(configured []interface{}) []*storage.BucketCors {

func expandBucketEncryption(configured interface{}) *storage.BucketEncryption {
encs := configured.([]interface{})
if encs == nil || len(encs) == 0 || encs[0] == nil {
if len(encs) == 0 || encs[0] == nil {
return nil
}
enc := encs[0].(map[string]interface{})
Expand Down

0 comments on commit 8310f11

Please sign in to comment.