aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 1265d9cff8ea2ceaaa3a0202ddbd8681357bc043
parent 67d14977fa91a56509d8ddde54607b4b7811d3fe
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 12 Jun 2018 09:50:46 -0400

Apply gofmt

Diffstat:
Mwidgets/aerc.go | 16++++++++--------
Mworker/worker.go | 3++-
2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go @@ -22,11 +22,11 @@ func NewAerc(logger *log.Logger) *Aerc { tabs := libui.NewTabs() mainGrid := libui.NewGrid().Rows([]libui.GridSpec{ - libui.GridSpec{libui.SIZE_EXACT, 1}, - libui.GridSpec{libui.SIZE_WEIGHT, 1}, + {libui.SIZE_EXACT, 1}, + {libui.SIZE_WEIGHT, 1}, }).Columns([]libui.GridSpec{ - libui.GridSpec{libui.SIZE_EXACT, 20}, - libui.GridSpec{libui.SIZE_WEIGHT, 1}, + {libui.SIZE_EXACT, 20}, + {libui.SIZE_WEIGHT, 1}, }) statusbar := libui.NewStack() @@ -42,11 +42,11 @@ func NewAerc(logger *log.Logger) *Aerc { acctPlaceholder := func(sidebar, body rune, name string) { accountGrid := libui.NewGrid().Rows([]libui.GridSpec{ - libui.GridSpec{libui.SIZE_WEIGHT, 1}, - libui.GridSpec{libui.SIZE_EXACT, 1}, + {libui.SIZE_WEIGHT, 1}, + {libui.SIZE_EXACT, 1}, }).Columns([]libui.GridSpec{ - libui.GridSpec{libui.SIZE_EXACT, 20}, - libui.GridSpec{libui.SIZE_WEIGHT, 1}, + {libui.SIZE_EXACT, 20}, + {libui.SIZE_WEIGHT, 1}, }) // Sidebar placeholder accountGrid.AddChild(libui.NewBordered( diff --git a/worker/worker.go b/worker/worker.go @@ -22,7 +22,8 @@ func NewWorker(source string, logger *log.Logger) (*types.Worker, error) { Logger: logger, } switch u.Scheme { - case "imap": fallthrough; + case "imap": + fallthrough case "imaps": worker.Backend = imap.NewIMAPWorker(worker) default: