Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Nov 12, 2024
1 parent 552cdcf commit 70294d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tariff/pun.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ func parseFormFields(body io.Reader) (url.Values, error) {
var f func(*html.Node)
f = func(n *html.Node) {
if n.Type == html.ElementNode && n.Data == "input" {
inputType := ""
inputName := ""
inputValue := ""
var inputType, inputName, inputValue string
for _, a := range n.Attr {
if a.Key == "type" {
inputType = a.Val
Expand Down

0 comments on commit 70294d1

Please sign in to comment.