Browse Source

Fix copyright head and lint

master
Lunny Xiao yan 5 years ago
parent
commit
c6739db1ae
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      cmd/migrate_storage.go
  2. +1
    -1
      integrations/attachment_test.go
  3. +1
    -0
      models/admin.go

+ 1
- 1
cmd/migrate_storage.go View File

@@ -1,4 +1,4 @@
// Copyright 2018 The Gitea Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.



+ 1
- 1
integrations/attachment_test.go View File

@@ -122,7 +122,7 @@ func TestGetAttachment(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
//Write empty file to be available for response
if tc.createFile {
_, err := storage.Attachments.Save(models.AttachmentRelativePath(tc), strings.NewReader("hello world"))
_, err := storage.Attachments.Save(models.AttachmentRelativePath(tc.uuid), strings.NewReader("hello world"))
assert.NoError(t, err)
}
//Actual test


+ 1
- 0
models/admin.go View File

@@ -1,4 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.



Loading…
Cancel
Save