summary refs log tree commit diff stats
path: root/commands/msgview
diff options
context:
space:
mode:
authorWagner Riffel <wgrriffel@gmail.com>2019-09-03 16:34:03 -0300
committerDrew DeVault <sir@cmpwn.com>2019-09-04 16:30:57 -1000
commit6838c23478944a9b45df1fa9a0f432ec77423987 (patch)
treedf6c5eb1c3bb4af779f98dd5ec9fa2d5b7658b4f /commands/msgview
parentc6b776adbfb11ba34756a1d4f770b15c2fb3cb46 (diff)
downloadaerc-6838c23478944a9b45df1fa9a0f432ec77423987.tar.gz
all: purge redundant underscores
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
Diffstat (limited to 'commands/msgview')
-rw-r--r--commands/msgview/close.go6
-rw-r--r--commands/msgview/next-part.go6
-rw-r--r--commands/msgview/next.go6
-rw-r--r--commands/msgview/open.go6
-rw-r--r--commands/msgview/save.go6
-rw-r--r--commands/msgview/toggle-headers.go6
6 files changed, 18 insertions, 18 deletions
diff --git a/commands/msgview/close.go b/commands/msgview/close.go
index 6a7eb0a..9966735 100644
--- a/commands/msgview/close.go
+++ b/commands/msgview/close.go
@@ -12,15 +12,15 @@ func init() {
 	register(Close{})
 }
 
-func (_ Close) Aliases() []string {
+func (Close) Aliases() []string {
 	return []string{"close"}
 }
 
-func (_ Close) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Close) Complete(aerc *widgets.Aerc, args []string) []string {
 	return nil
 }
 
-func (_ Close) Execute(aerc *widgets.Aerc, args []string) error {
+func (Close) Execute(aerc *widgets.Aerc, args []string) error {
 	if len(args) != 1 {
 		return errors.New("Usage: close")
 	}
diff --git a/commands/msgview/next-part.go b/commands/msgview/next-part.go
index 8f25e02..c9423cc 100644
--- a/commands/msgview/next-part.go
+++ b/commands/msgview/next-part.go
@@ -14,15 +14,15 @@ func init() {
 	register(NextPrevPart{})
 }
 
-func (_ NextPrevPart) Aliases() []string {
+func (NextPrevPart) Aliases() []string {
 	return []string{"next-part", "prev-part"}
 }
 
-func (_ NextPrevPart) Complete(aerc *widgets.Aerc, args []string) []string {
+func (NextPrevPart) Complete(aerc *widgets.Aerc, args []string) []string {
 	return nil
 }
 
-func (_ NextPrevPart) Execute(aerc *widgets.Aerc, args []string) error {
+func (NextPrevPart) Execute(aerc *widgets.Aerc, args []string) error {
 	if len(args) > 2 {
 		return nextPrevPartUsage(args[0])
 	}
diff --git a/commands/msgview/next.go b/commands/msgview/next.go
index 647aafb..3943ac9 100644
--- a/commands/msgview/next.go
+++ b/commands/msgview/next.go
@@ -11,16 +11,16 @@ func init() {
 	register(NextPrevMsg{})
 }
 
-func (_ NextPrevMsg) Aliases() []string {
+func (NextPrevMsg) Aliases() []string {
 	return []string{"next", "next-message", "prev", "prev-message"}
 }
 
-func (_ NextPrevMsg) Complete(aerc *widgets.Aerc, args []string) []string {
+func (NextPrevMsg) Complete(aerc *widgets.Aerc, args []string) []string {
 	return nil
 }
 
-func (_ NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error {
 	err, n, pct := account.ParseNextPrevMessage(args)
+func (NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error {
 	if err != nil {
 		return err
 	}
diff --git a/commands/msgview/open.go b/commands/msgview/open.go
index f4a0931..ab023a1 100644
--- a/commands/msgview/open.go
+++ b/commands/msgview/open.go
@@ -20,15 +20,15 @@ func init() {
 	register(Open{})
 }
 
-func (_ Open) Aliases() []string {
+func (Open) Aliases() []string {
 	return []string{"open"}
 }
 
-func (_ Open) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Open) Complete(aerc *widgets.Aerc, args []string) []string {
 	return nil
 }
 
-func (_ Open) Execute(aerc *widgets.Aerc, args []string) error {
+func (Open) Execute(aerc *widgets.Aerc, args []string) error {
 	if len(args) != 1 {
 		return errors.New("Usage: open")
 	}
diff --git a/commands/msgview/save.go b/commands/msgview/save.go
index 75ba56f..3b38ec7 100644
--- a/commands/msgview/save.go
+++ b/commands/msgview/save.go
@@ -22,15 +22,15 @@ func init() {
 	register(Save{})
 }
 
-func (_ Save) Aliases() []string {
+func (Save) Aliases() []string {
 	return []string{"save"}
 }
 
-func (_ Save) Complete(aerc *widgets.Aerc, args []string) []string {
+func (Save) Complete(aerc *widgets.Aerc, args []string) []string {
 	return nil
 }
 
-func (_ Save) Execute(aerc *widgets.Aerc, args []string) error {
+func (Save) Execute(aerc *widgets.Aerc, args []string) error {
 	opts, optind, err := getopt.Getopts(args, "p")
 	if err != nil {
 		return err
diff --git a/commands/msgview/toggle-headers.go b/commands/msgview/toggle-headers.go
index d9d7eba..f13e27d 100644
--- a/commands/msgview/toggle-headers.go
+++ b/commands/msgview/toggle-headers.go
@@ -13,15 +13,15 @@ func init() {
 	register(ToggleHeaders{})
 }
 
-func (_ ToggleHeaders) Aliases() []string {
+func (ToggleHeaders) Aliases() []string {
 	return []string{"toggle-headers"}
 }
 
-func (_ ToggleHeaders) Complete(aerc *widgets.Aerc, args []string) []string {
+func (ToggleHeaders) Complete(aerc *widgets.Aerc, args []string) []string {
 	return nil
 }
 
-func (_ ToggleHeaders) Execute(aerc *widgets.Aerc, args []string) error {
+func (ToggleHeaders) Execute(aerc *widgets.Aerc, args []string) error {
 	if len(args) > 1 {
 		return toggleHeadersUsage(args[0])
 	}