summaryrefslogtreecommitdiffstats
path: root/models/attachment.go
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2017-01-28 23:14:56 +0100
committerGitHub <noreply@github.com>2017-01-28 23:14:56 +0100
commit78535fb08ebe667f27da6b44a9af52aae1148434 (patch)
treefa4f539811b8e66ae7aa7f177702180642844bc3 /models/attachment.go
parentcc31a21192cba31cc2ede74b44f1c4e19621d4f7 (diff)
downloadgitea-78535fb08ebe667f27da6b44a9af52aae1148434.tar.gz
gitea-78535fb08ebe667f27da6b44a9af52aae1148434.zip
Allow custom public files (#782)
* Allow custom public files * Gofmt code, lots of places not related to this pr
Diffstat (limited to 'models/attachment.go')
-rw-r--r--models/attachment.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/models/attachment.go b/models/attachment.go
index 149d9ea5bf..104ad1d92f 100644
--- a/models/attachment.go
+++ b/models/attachment.go
@@ -31,7 +31,6 @@ type Attachment struct {
CreatedUnix int64
}
-
// BeforeInsert is invoked from XORM before inserting an object of this type.
func (a *Attachment) BeforeInsert() {
a.CreatedUnix = time.Now().Unix()