diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-31 22:16:40 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-01 10:44:52 +0200 |
commit | aaf0a0c65673db4b94c0dc200d7394a192128da1 (patch) | |
tree | 44940936efff55b49a6d359d053f55c7ab824e4d /lib/format | |
parent | 21dcd440f877192af128c00ca2acbabf68bb3ee3 (diff) | |
download | aerc-aaf0a0c65673db4b94c0dc200d7394a192128da1.tar.gz |
lint: apply new formatting rules
Run `make fmt`.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/format')
-rw-r--r-- | lib/format/format.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/format/format.go b/lib/format/format.go index cc9716dd..0d14cb19 100644 --- a/lib/format/format.go +++ b/lib/format/format.go @@ -81,7 +81,8 @@ type Ctx struct { func ParseMessageFormat(format string, timeFmt string, thisDayTimeFmt string, thisWeekTimeFmt string, thisYearTimeFmt string, ctx Ctx) ( - string, []interface{}, error) { + string, []interface{}, error, +) { retval := make([]byte, 0, len(format)) var args []interface{} @@ -289,10 +290,10 @@ func ParseMessageFormat(format string, timeFmt string, thisDayTimeFmt string, } case 'Z': // calculate all flags - var readReplyFlag = "" - var delFlag = "" - var flaggedFlag = "" - var markedFlag = "" + readReplyFlag := "" + delFlag := "" + flaggedFlag := "" + markedFlag := "" seen := false recent := false answered := false @@ -390,7 +391,8 @@ handle_end_error: } func dummyIfZeroDate(date time.Time, format string, todayFormat string, - thisWeekFormat string, thisYearFormat string) string { + thisWeekFormat string, thisYearFormat string, +) string { if date.IsZero() { return strings.Repeat("?", len(format)) } |