diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 11:52:04 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 12:03:16 +0100 |
| commit | 7339e77c6eda5b96874dfc099d5c58da8ed53629 (patch) | |
| tree | b602159b0c397cbaa4f8983aea987274163fe357 /client/client.go | |
| parent | e9f8db8ee8fccf60e58deb1d72766f94a053bb16 (diff) | |
Refactor: Remove most get prefixes for receiver functions
Diffstat (limited to 'client/client.go')
| -rw-r--r-- | client/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go index 34981db..958dd25 100644 --- a/client/client.go +++ b/client/client.go @@ -147,7 +147,7 @@ func (client *Client) Deregister() { // Save the config saveErr := client.Config.Save(&client) if saveErr != nil { - client.Logger.Info("failed saving configuration, error: %s", types.GetErrorTraceback(saveErr)) + client.Logger.Info("failed saving configuration, error: %s", types.ErrorTraceback(saveErr)) } // Empty out the state @@ -157,7 +157,7 @@ func (client *Client) Deregister() { // askProfile asks the user for a profile by moving the FSM to the ASK_PROFILE state. func (client *Client) askProfile(chosenServer server.Server) error { errorMessage := "failed asking for profiles" - profiles, profilesErr := server.GetValidProfiles(chosenServer, client.SupportsWireguard) + profiles, profilesErr := server.ValidProfiles(chosenServer, client.SupportsWireguard) if profilesErr != nil { return types.NewWrappedError(errorMessage, profilesErr) } |
