aboutsummaryrefslogtreecommitdiffstats
path: root/services/attachment/attachment.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/attachment/attachment.go')
-rw-r--r--services/attachment/attachment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/attachment/attachment.go b/services/attachment/attachment.go
index e3b65a239b..cce36206a7 100644
--- a/services/attachment/attachment.go
+++ b/services/attachment/attachment.go
@@ -40,7 +40,7 @@ func NewAttachment(attach *repo_model.Attachment, file io.Reader) (*repo_model.A
}
// UploadAttachment upload new attachment into storage and update database
-func UploadAttachment(file io.Reader, actorID, repoID, releaseID int64, fileName string, allowedTypes string) (*repo_model.Attachment, error) {
+func UploadAttachment(file io.Reader, actorID, repoID, releaseID int64, fileName, allowedTypes string) (*repo_model.Attachment, error) {
buf := make([]byte, 1024)
n, _ := util.ReadAtMost(file, buf)
buf = buf[:n]