summaryrefslogtreecommitdiffstats
path: root/models/attachment.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-02-26 21:16:35 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-27 10:16:35 +0800
commit136e6beb0f3c26bdf26711dba49513aa2be3aa2e (patch)
tree3e193927936c69a7082faca4d460ca24a9dd5d85 /models/attachment.go
parent50918084bb1788b6c274376490cce8c4cb1bd3bd (diff)
downloadgitea-136e6beb0f3c26bdf26711dba49513aa2be3aa2e.tar.gz
gitea-136e6beb0f3c26bdf26711dba49513aa2be3aa2e.zip
Fix unused Engine bugs (#1064)
Diffstat (limited to 'models/attachment.go')
-rw-r--r--models/attachment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/attachment.go b/models/attachment.go
index 104ad1d92f..5fd90bef13 100644
--- a/models/attachment.go
+++ b/models/attachment.go
@@ -89,7 +89,7 @@ func NewAttachment(name string, buf []byte, file multipart.File) (_ *Attachment,
func getAttachmentByUUID(e Engine, uuid string) (*Attachment, error) {
attach := &Attachment{UUID: uuid}
- has, err := x.Get(attach)
+ has, err := e.Get(attach)
if err != nil {
return nil, err
} else if !has {