From c6f57688ba7eb7324aa3db74e9591b1f913bbf73 Mon Sep 17 00:00:00 2001 From: Cedric <23346008+840@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:39:45 +0100 Subject: [PATCH] fmt --- mws/data_mws_network_connectivity_config.go | 6 +++--- mws/data_mws_network_connectivity_config_test.go | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mws/data_mws_network_connectivity_config.go b/mws/data_mws_network_connectivity_config.go index d65e29870d..8a50c56aa4 100644 --- a/mws/data_mws_network_connectivity_config.go +++ b/mws/data_mws_network_connectivity_config.go @@ -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 }) } diff --git a/mws/data_mws_network_connectivity_config_test.go b/mws/data_mws_network_connectivity_config_test.go index b675d8e691..3a752faff8 100644 --- a/mws/data_mws_network_connectivity_config_test.go +++ b/mws/data_mws_network_connectivity_config_test.go @@ -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, @@ -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")