mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-24 02:32:17 +08:00
style(example): fix gofmt
This commit is contained in:
parent
93191b14e0
commit
384a897a8f
@ -23,7 +23,7 @@ func main() {
|
||||
files := form.File["files"]
|
||||
|
||||
for _, file := range files {
|
||||
if err:=c.SaveUploadedFile(file,file.Filename);err!=nil{
|
||||
if err := c.SaveUploadedFile(file, file.Filename); err != nil {
|
||||
c.String(http.StatusBadRequest, fmt.Sprintf("upload file err: %s", err.Error()))
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
if err:=c.SaveUploadedFile(file,file.Filename);err!=nil{
|
||||
if err := c.SaveUploadedFile(file, file.Filename); err != nil {
|
||||
c.String(http.StatusBadRequest, fmt.Sprintf("upload file err: %s", err.Error()))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user