Variable naming cleanup.
This commit is contained in:
parent
bbf27d1b04
commit
5582bb6acd
5 changed files with 51 additions and 46 deletions
|
|
@ -43,6 +43,7 @@ func Set(c echo.Context, typ Type, message string) {
|
|||
// Get gets flash messages from the cookie storage.
|
||||
func Get(c echo.Context, typ Type) []string {
|
||||
sess := getSession(c)
|
||||
|
||||
fm := sess.Flashes(string(typ))
|
||||
// If we have some messages.
|
||||
if len(fm) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue