~sircmpwn/aerc

Fix indentation v2 PROPOSED

Robin Opletal: 1
 Fix indentation

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/16406/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH v2] Fix indentation Export this patch

---
 commands/msgview/save.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/msgview/save.go b/commands/msgview/save.go
index 014c204..dd09f19 100644
--- a/commands/msgview/save.go
+++ b/commands/msgview/save.go
@@ -181,7 +181,7 @@ func generateFilename(part *models.BodyStructure) string {
	if fn, ok := part.DispositionParams["filename"]; ok {
                filename = filepath.Base(fn)
	} else if fn, ok := part.Params["name"]; ok {
		filename = filepath.Base(fn)
                filename = filepath.Base(fn)
	} else {
		timestamp := time.Now().Format("2006-01-02-150405")
		filename = fmt.Sprintf("aerc_%v", timestamp)
--
2.29.2
This fixes up the wrong line -- now there are two lines with spaces
instead of tabs.

You can use `go fmt ./...` to fix everything.