diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2021-03-15 02:52:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 19:52:12 +0100 |
commit | 167b0f46ef946fad3ca13976c3b87598f505e2ea (patch) | |
tree | 8b6a4a47a2a0149899b3eb49b296677c2dba4d36 /models/action.go | |
parent | 164e35ead3c1b9b82d4a23644f6fe96652a747eb (diff) | |
download | gitea-167b0f46ef946fad3ca13976c3b87598f505e2ea.tar.gz gitea-167b0f46ef946fad3ca13976c3b87598f505e2ea.zip |
chore(models): rewrite code format. (#14754)
* chore: rewrite format.
* chore: update format
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* chore: update format
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* chore: Adjacent parameters with the same type should be grouped together
* chore: update format.
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/action.go b/models/action.go index 47d056ae3a..49a6efdc98 100644 --- a/models/action.go +++ b/models/action.go @@ -186,7 +186,7 @@ func (a *Action) GetRepoLink() string { } // GetRepositoryFromMatch returns a *Repository from a username and repo strings -func GetRepositoryFromMatch(ownerName string, repoName string) (*Repository, error) { +func GetRepositoryFromMatch(ownerName, repoName string) (*Repository, error) { var err error refRepo, err := GetRepositoryByOwnerAndName(ownerName, repoName) if err != nil { @@ -218,7 +218,7 @@ func (a *Action) getCommentLink(e Engine) string { if len(a.GetIssueInfos()) == 0 { return "#" } - //Return link to issue + // Return link to issue issueIDString := a.GetIssueInfos()[0] issueID, err := strconv.ParseInt(issueIDString, 10, 64) if err != nil { @@ -322,7 +322,7 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) { return actions, nil } -func activityReadable(user *User, doer *User) bool { +func activityReadable(user, doer *User) bool { var doerID int64 if doer != nil { doerID = doer.ID |