Skip to content

Commit ea7d8b6

Browse files
committed
Fix lint
1 parent 9d3cbb4 commit ea7d8b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/api/v1/repo/commits.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ func DownloadCommitPatch(ctx *context.APIContext) {
275275
}
276276

277277
func DownloadCommitDiffOrPatch(ctx *context.APIContext, diffType string) {
278-
var repoPath string
279-
repoPath = models.RepoPath(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
278+
repoPath := models.RepoPath(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name)
280279
if err := git.GetRawDiff(
281280
repoPath,
282281
ctx.Params(":sha"),

0 commit comments

Comments
 (0)