Skip to content

Commit

Permalink
change parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
metiftikci committed May 24, 2024
1 parent c3e57a2 commit 36f8059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/issue/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

// ChangeContent changes issue content, as the given user.
func ChangeContent(ctx context.Context, issue *issues_model.Issue, doer *user_model.User, content string, version int) error {
func ChangeContent(ctx context.Context, issue *issues_model.Issue, doer *user_model.User, content string, contentVersion int) error {
if err := issue.LoadRepo(ctx); err != nil {
return err
}
Expand All @@ -26,7 +26,7 @@ func ChangeContent(ctx context.Context, issue *issues_model.Issue, doer *user_mo

oldContent := issue.Content

if err := issues_model.ChangeIssueContent(ctx, issue, doer, content, version); err != nil {
if err := issues_model.ChangeIssueContent(ctx, issue, doer, content, contentVersion); err != nil {
return err
}

Expand Down

0 comments on commit 36f8059

Please sign in to comment.