mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
fix(net/ghttp): handle error from RegisterTypeConverterFunc in init function
This commit is contained in:
@ -25,7 +25,7 @@ import (
|
||||
|
||||
// init initializes the type converters for *UploadFile.
|
||||
func init() {
|
||||
gconv.RegisterTypeConverterFunc(stringToUploadFile)
|
||||
_ = gconv.RegisterTypeConverterFunc(stringToUploadFile)
|
||||
}
|
||||
|
||||
// UploadFile wraps the multipart uploading file with more and convenient features.
|
||||
|
||||
Reference in New Issue
Block a user