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:
parent
857df79dd5
commit
6aa23d987a
@ -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"))
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user