From ad252c74804af07bddfdb007145525dd91c91f72 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Tue, 1 Jan 2019 16:45:42 +0100 Subject: [PATCH] Fix code to build sortConfig --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 4d3bb83..c43be8c 100644 --- a/main.go +++ b/main.go @@ -50,9 +50,9 @@ func showQueue() { os.Exit(1) } sortConfig := mailq.NewSortConfig() - sortConfig.By("Status", "ASC") - sortConfig.By("Sender", "ASC") - sortConfig.By("Recipients", "DESC") + sortConfig, _ = sortConfig.By("Status", "ASC") + sortConfig, _ = sortConfig.By("Sender", "ASC") + sortConfig, _ = sortConfig.By("Recipients", "DESC") queue.Sort(sortConfig) if settings["usePager"] == "true" { pagerReader, pagerWriter := io.Pipe()