Skip to content

Commit f3daeb0

Browse files
author
Josip Stanic
committed
fix names ofr local var
1 parent 80427b9 commit f3daeb0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

teams_accounts.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@ func (api *API) TeamsAccountConnectivityConfiguration(ctx context.Context, accou
248248
return TeamsAccountConnectivitySettings{}, err
249249
}
250250

251-
var zeroTrustConfigResponse TeamsAccountConnectivitySettingsResponse
252-
err = json.Unmarshal(res, &zeroTrustConfigResponse)
251+
var teamsConnectivityResponse TeamsAccountConnectivitySettingsResponse
252+
err = json.Unmarshal(res, &teamsConnectivityResponse)
253253
if err != nil {
254254
return TeamsAccountConnectivitySettings{}, fmt.Errorf("%s: %w", errUnmarshalError, err)
255255
}
256256

257-
return zeroTrustConfigResponse.Result, nil
257+
return teamsConnectivityResponse.Result, nil
258258
}
259259

260260
// TeamsAccountUpdateConfiguration updates a teams account configuration.
@@ -328,11 +328,11 @@ func (api *API) TeamsAccountConnectivityUpdateConfiguration(ctx context.Context,
328328
return TeamsAccountConnectivitySettings{}, err
329329
}
330330

331-
var zeroTrustConfigResponse TeamsAccountConnectivitySettingsResponse
332-
err = json.Unmarshal(res, &zeroTrustConfigResponse)
331+
var teamsConnectivityResponse TeamsAccountConnectivitySettingsResponse
332+
err = json.Unmarshal(res, &teamsConnectivityResponse)
333333
if err != nil {
334334
return TeamsAccountConnectivitySettings{}, fmt.Errorf("%s: %w", errUnmarshalError, err)
335335
}
336336

337-
return zeroTrustConfigResponse.Result, nil
337+
return teamsConnectivityResponse.Result, nil
338338
}

0 commit comments

Comments
 (0)