1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-27 14:57:05 +00:00

Nothing special, some linting

This commit is contained in:
Gerasimos Maropoulos
2016-10-16 17:13:49 +03:00
parent 6dbfc7ad1c
commit 7e8c1e57d2
3 changed files with 11 additions and 12 deletions

View File

@@ -352,7 +352,7 @@ func (ctx *Context) PostValuesAll() (valuesAll map[string][]string) {
// PostValues returns the post data values as []string of a single key/name
func (ctx *Context) PostValues(name string) []string {
values := make([]string, 0)
var values []string
if v := ctx.PostValuesAll(); v != nil && len(v) > 0 {
values = v[name]
}