diff options
author | Connor Kuehl <cipkuehl@gmail.com> | 2022-04-14 16:30:23 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-04-14 23:48:28 +0200 |
commit | c6dae02925ae4a970210125b06f3fb9458f1d3fd (patch) | |
tree | 446918482c86d06a7981251b17b245ea361b62fe /aerc.go | |
parent | dc271b4da2ac6e17303e284f1de18a340deebcd0 (diff) | |
download | aerc-c6dae02925ae4a970210125b06f3fb9458f1d3fd.tar.gz |
main: remove unnecessary pointer dereference
Calling a method on a pointer will dereference it automatically.
Signed-off-by: Connor Kuehl <cipkuehl@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'aerc.go')
-rw-r--r-- | aerc.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,7 +58,7 @@ func getCommands(selected libui.Drawable) []*commands.Commands { } func execCommand(aerc *widgets.Aerc, ui *libui.UI, cmd []string) error { - cmds := getCommands((*aerc).SelectedTab()) + cmds := getCommands(aerc.SelectedTab()) for i, set := range cmds { err := set.ExecuteCommand(aerc, cmd) if _, ok := err.(commands.NoSuchCommand); ok { @@ -80,7 +80,7 @@ func execCommand(aerc *widgets.Aerc, ui *libui.UI, cmd []string) error { func getCompletions(aerc *widgets.Aerc, cmd string) []string { var completions []string - for _, set := range getCommands((*aerc).SelectedTab()) { + for _, set := range getCommands(aerc.SelectedTab()) { completions = append(completions, set.GetCompletions(aerc, cmd)...) } sort.Strings(completions) |