Skip to content

Commit

Permalink
[_] fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Mar 3, 2023
1 parent 9649a1d commit 5edc9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xfs/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ func init() {
func processUpload(process *gou.Process) interface{} {
process.ValidateArgNums(1)

var tmpfile xun.UploadFile
var tmpfile xun.UploadFile
data, err := jsoniter.Marshal(process.Args[0])
if err != nil {
exception.New("上传文件参数错误 %s %v", 400, err.Error(), process.Args[0]).Throw()
}

err = jsoniter.Unmarshal(data, &tmpfile)
if err != nil {
if err != nil {
exception.New("上传文件参数错误 %s %v", 400, err.Error(), process.Args[0]).Throw()
}

Expand Down

0 comments on commit 5edc9e8

Please sign in to comment.