1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-28 23:06:43 +02:00

Remove ineffectual assignment of values

This commit is contained in:
Ralph Slooten 2024-01-02 17:29:59 +13:00
parent 857df79dd5
commit 6aa23d987a
2 changed files with 2 additions and 2 deletions

View File

@ -479,7 +479,7 @@ func GetAttachmentPart(id, partID string) (*enmime.Part, error) {
// If a query argument is set in the request the function will return the
// latest message matching the search
func LatestID(r *http.Request) (string, error) {
messages := []MessageSummary{}
var messages []MessageSummary
var err error
search := strings.TrimSpace(r.URL.Query().Get("query"))

View File

@ -14,7 +14,7 @@ import (
// RedirectToLatestMessage (method: GET) redirects the web UI to the latest message
func RedirectToLatestMessage(w http.ResponseWriter, r *http.Request) {
messages := []storage.MessageSummary{}
var messages []storage.MessageSummary
var err error
search := strings.TrimSpace(r.URL.Query().Get("query"))