From c6739db1aef7d94b4466d05c6fabe41d7ec12659 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 13 May 2020 09:34:16 +0800 Subject: [PATCH] Fix copyright head and lint --- cmd/migrate_storage.go | 2 +- integrations/attachment_test.go | 2 +- models/admin.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go index 35c1b4505..b92100135 100644 --- a/cmd/migrate_storage.go +++ b/cmd/migrate_storage.go @@ -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. diff --git a/integrations/attachment_test.go b/integrations/attachment_test.go index 533725a2a..7219adf7d 100644 --- a/integrations/attachment_test.go +++ b/integrations/attachment_test.go @@ -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 diff --git a/models/admin.go b/models/admin.go index 73bce8925..20abd9741 100644 --- a/models/admin.go +++ b/models/admin.go @@ -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.