Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
840 committed Nov 14, 2024
1 parent fd59501 commit c6f5768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions mws/data_mws_network_connectivity_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func DataSourceMwsNetworkConnectivityConfig() common.Resource {
return nil, err
}

for _, ncc := range list {
if data.Name == ncc.Name {
for _, ncc := range list {
if data.Name == ncc.Name {
return &mwsNetworkConnectivityConfiguration{NetworkConnectivityConfiguration: ncc}, nil
}
}
}
return nil, nil
})
}
10 changes: 5 additions & 5 deletions mws/data_mws_network_connectivity_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ func TestDataSourceMwsNetworkConnectivityConfig(t *testing.T) {

qa.ResourceFixture{
MockAccountClientFunc: func(a *mocks.MockAccountClient) {
api := a.GetMockNetworkConnectivityAPI().EXPECT()
api := a.GetMockNetworkConnectivityAPI().EXPECT()
api.ListNetworkConnectivityConfigurationsAll(mock.Anything, settings.ListNetworkConnectivityConfigurationsRequest{}).Return(
[]settings.NetworkConnectivityConfiguration{ncc}, nil,
)
},
[]settings.NetworkConnectivityConfiguration{ncc}, nil,
)
},
AccountID: "abc",
Read: true,
NonWritable: true,
Expand Down Expand Up @@ -71,7 +71,7 @@ func TestDataSourceMwsNetworkConnectivityConfig_Error(t *testing.T) {
Read: true,
NonWritable: true,
ID: "_",
HCL: `
HCL: `
name = "def"
`,
}.ExpectError(t, "i'm a teapot")
Expand Down

0 comments on commit c6f5768

Please sign in to comment.