mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
chore(code): replace interface{} with any EE-6513 (#11986)
This commit is contained in:
parent
9c4935286f
commit
f0d43f941f
66 changed files with 231 additions and 231 deletions
|
@ -43,7 +43,7 @@ func RetrieveMultiPartFormFile(request *http.Request, requestParameter string) (
|
|||
|
||||
// RetrieveMultiPartFormJSONValue decodes the value of some form data as a JSON object into the target parameter.
|
||||
// If optional is set to true, will not return an error when the form data value is not found.
|
||||
func RetrieveMultiPartFormJSONValue(request *http.Request, name string, target interface{}, optional bool) error {
|
||||
func RetrieveMultiPartFormJSONValue(request *http.Request, name string, target any, optional bool) error {
|
||||
value, err := RetrieveMultiPartFormValue(request, name, optional)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -149,7 +149,7 @@ func RetrieveBooleanQueryParameter(request *http.Request, name string, optional
|
|||
|
||||
// RetrieveJSONQueryParameter decodes the value of a query parameter as a JSON object into the target parameter.
|
||||
// If optional is set to true, will not return an error when the query parameter is not found.
|
||||
func RetrieveJSONQueryParameter(request *http.Request, name string, target interface{}, optional bool) error {
|
||||
func RetrieveJSONQueryParameter(request *http.Request, name string, target any, optional bool) error {
|
||||
queryParameter, err := RetrieveQueryParameter(request, name, optional)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue