Skip to content

Commit 434704c

Browse files
committed
fix lint
1 parent 95eebb1 commit 434704c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integrations/git_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ func doCreateAGitStylePull(dstPath string, ctx *APITestContext, baseBranch, head
582582
Name: "user2",
583583
When: time.Now(),
584584
},
585-
Message: fmt.Sprintf("Testing commit 1"),
585+
Message: "Testing commit 1",
586586
})
587587
assert.NoError(t, err)
588588
commit, err = git.GetRefCommitID(dstPath, "HEAD")
@@ -642,7 +642,7 @@ func doCreateAGitStylePull(dstPath string, ctx *APITestContext, baseBranch, head
642642
Name: "user2",
643643
When: time.Now(),
644644
},
645-
Message: fmt.Sprintf("Testing commit 2"),
645+
Message: "Testing commit 2",
646646
})
647647
assert.NoError(t, err)
648648
commit, err = git.GetRefCommitID(dstPath, "HEAD")

routers/private/hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ func HookProcReceive(ctx *gitea_context.PrivateContext) {
669669
OrignRef: opts.RefFullNames[i],
670670
OldOID: opts.OldCommitIDs[i],
671671
NewOID: opts.NewCommitIDs[i],
672-
Err: fmt.Sprintf("topic-branch is not set"),
672+
Err: "topic-branch is not set",
673673
})
674674
}
675675

0 commit comments

Comments
 (0)