Skip to content
Myr

not use tmp var (#1032)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by 田欧 · committed by Bo-Yi Wu · parent 30cfa59 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:context.go+1 added-2 removed
356 unmodified lines
357358// GetQueryArray returns a slice of strings for a given query key, plus359// a boolean value whether at least one value exists for the given key.360func (c *Context) GetQueryArray(key string) ([]string, bool) {361 req := c.Request362 if values, ok := req.URL.Query()[key]; ok && len(values) > 0 {361 if values, ok := c.Request.URL.Query()[key]; ok && len(values) > 0 {362 return values, true363 }364 return []string{}, false365}
429 unmodified lines