mirror of
https://github.com/adnanh/webhook.git
synced 2025-07-15 23:29:56 +00:00
Remove unnecessary else clause
This commit is contained in:
parent
2ed15e35bc
commit
8d1498e285
1 changed files with 16 additions and 16 deletions
|
@ -265,7 +265,8 @@ func (h *Hook) ParseJSONParameters(headers, query, payload *map[string]interface
|
|||
|
||||
if err != nil {
|
||||
return &ParseError{err}
|
||||
} else {
|
||||
}
|
||||
|
||||
var source *map[string]interface{}
|
||||
|
||||
switch h.JSONStringParameters[i].Source {
|
||||
|
@ -282,7 +283,6 @@ func (h *Hook) ParseJSONParameters(headers, query, payload *map[string]interface
|
|||
} else {
|
||||
return &SourceError{h.JSONStringParameters[i]}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return &ArgumentError{h.JSONStringParameters[i]}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue