diff options
author | Reto Brunner <reto@labrat.space> | 2021-02-26 22:10:26 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2021-02-26 22:14:58 +0100 |
commit | 8b4f2d148c8519326f306fd14ba872d7cb3101c6 (patch) | |
tree | 278576aa1e034c5cb2c5df9a1579661c3edacfee /commands/msg/forward.go | |
parent | fda424bebc6dedbbcbffe4d330accc70d081b478 (diff) | |
download | aerc-8b4f2d148c8519326f306fd14ba872d7cb3101c6.tar.gz |
Fix linter warnings
* Remove redundant return (code was never reached)
* Remove redundant type information
* Rename unused function parameters to "_"
Diffstat (limited to 'commands/msg/forward.go')
-rw-r--r-- | commands/msg/forward.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/forward.go b/commands/msg/forward.go index 475d6805..edade6d1 100644 --- a/commands/msg/forward.go +++ b/commands/msg/forward.go @@ -132,7 +132,7 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error { return } composer.AddAttachment(tmpFileName) - composer.OnClose(func(composer *widgets.Composer) { + composer.OnClose(func(_ *widgets.Composer) { os.RemoveAll(tmpDir) }) }) |