diff --git a/repl/command.go b/repl/command.go index 316875b722f62ee390546afa879278ccc9f364dc..e0949dbacba4eda64a2961188b49b7fea9398450 100644 --- a/repl/command.go +++ b/repl/command.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import "git.lyda.ie/kevin/bulletin/dclish" diff --git a/repl/folders.go b/repl/folders.go index 7f385af52692bb69c63e6dad23b4a34beb739f98..4f09a6f641cb0ec5d14a8348d8360bf5118f186d 100644 --- a/repl/folders.go +++ b/repl/folders.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import ( diff --git a/repl/help.go b/repl/help.go index e2d9c8120d17987c9f8a043277fcae9e38f4b7d0..16b7131c90093967c314973293e0021f6afc3ac3 100644 --- a/repl/help.go +++ b/repl/help.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import ( diff --git a/repl/mail.go b/repl/mail.go index addac2a04f029882cab14248e3b90467ed10b18b..cf43205b78e6ddb84c438234bdea0d5946b0d1ba 100644 --- a/repl/mail.go +++ b/repl/mail.go @@ -8,18 +8,15 @@ import ( // ActionForward handles the `FORWARD` command. func ActionForward(_ *dclish.Command) error { - errors.New("Mail system is not yet implemented (see issue 9)") - return nil + return errors.New("Mail system is not yet implemented (see issue 9)") } // ActionMail handles the `MAIL` command. func ActionMail(_ *dclish.Command) error { - errors.New("Mail system is not yet implemented (see issue 9)") - return nil + return errors.New("Mail system is not yet implemented (see issue 9)") } // ActionRespond handles the `RESPOND` command. func ActionRespond(_ *dclish.Command) error { - errors.New("Mail system is not yet implemented (see issue 9)") - return nil + return errors.New("Mail system is not yet implemented (see issue 9)") } diff --git a/repl/messages.go b/repl/messages.go index 7e2dc328d8ba75f8b94bf04235232c1cc27a5542..a201afb8b5d90b399dd00631235e3480be128c3a 100644 --- a/repl/messages.go +++ b/repl/messages.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import ( @@ -716,7 +715,7 @@ func ActionSearch(cmd *dclish.Command) error { } allMsgs := []storage.Message{} - msgs := []storage.Message{} + var msgs []storage.Message var start int64 for i := range optFolders { switch optStart { diff --git a/repl/misc.go b/repl/misc.go index edd0a0136d4a3c184fcca6900f8272c4f9e8869e..fe91c60ae2eb7fea1695198f44979fff794d3b64 100644 --- a/repl/misc.go +++ b/repl/misc.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import ( diff --git a/repl/repl.go b/repl/repl.go index 1f69333aaf10bbfc0f6dfe257c4a00cd4579436d..3756497c4bbcf068a4ab3ddc2123d85d8fa50d26 100644 --- a/repl/repl.go +++ b/repl/repl.go @@ -1,4 +1,5 @@ -// Package repl implements the main event loop. +// Package repl defines the [dclish] commands and implements the actions +// and defines the REPL to get the commands. package repl import ( diff --git a/repl/set.go b/repl/set.go index 6a9d2a8aa36d6b0a40961b13f77712382cac281e..cda73903723bb9758e2d25ef4ba98fbe5f1adcce 100644 --- a/repl/set.go +++ b/repl/set.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import ( diff --git a/repl/show.go b/repl/show.go index 639b504eb2ad03b7ed3ed88df2484a3d18ccf9db..8d59e5914171eb6f73cd899462b4f69593cfadf9 100644 --- a/repl/show.go +++ b/repl/show.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import ( diff --git a/repl/xfer.go b/repl/xfer.go index 997a356acd5d1ee259ebb23ee2495a02d5e3e6a6..ebd2cf2436567ff3506f22615abfa2841d8760d1 100644 --- a/repl/xfer.go +++ b/repl/xfer.go @@ -1,4 +1,3 @@ -// Package repl implements the main event loop. package repl import (