summaryrefslogtreecommitdiff
path: root/service/http/request.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-29 23:25:04 +0300
committerWolfy-J <[email protected]>2018-09-29 23:25:04 +0300
commit06936766844c9d0d4f1f9f92efb622ba765c8c64 (patch)
tree456f679f57be64ee3963e823182f894668f28911 /service/http/request.go
parent1cfb3a4d142db6afec2befe82bdfdf625cc0f2d4 (diff)
removed empty error check
Diffstat (limited to 'service/http/request.go')
-rw-r--r--service/http/request.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/http/request.go b/service/http/request.go
index d733b20c..eb5c05bd 100644
--- a/service/http/request.go
+++ b/service/http/request.go
@@ -109,12 +109,12 @@ func NewRequest(r *http.Request, cfg *UploadsConfig) (req *Request, err error) {
}
// Open moves all uploaded files to temporary directory so it can be given to php later.
-func (r *Request) Open() error {
+func (r *Request) Open() {
if r.Uploads == nil {
- return nil
+ return
}
- return r.Uploads.Open()
+ r.Uploads.Open()
}
// Close clears all temp file uploads