aboutsummaryrefslogtreecommitdiff
path: root/internal/db/action.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/action.go')
-rw-r--r--internal/db/action.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/db/action.go b/internal/db/action.go
index a9efeeb8..970ff203 100644
--- a/internal/db/action.go
+++ b/internal/db/action.go
@@ -325,7 +325,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
ref = strings.TrimSpace(ref)
ref = strings.TrimRightFunc(ref, issueIndexTrimRight)
- if len(ref) == 0 {
+ if ref == "" {
continue
}
@@ -368,7 +368,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
ref = ref[strings.IndexByte(ref, byte(' '))+1:]
ref = strings.TrimRightFunc(ref, issueIndexTrimRight)
- if len(ref) == 0 {
+ if ref == "" {
continue
}
@@ -407,7 +407,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err
ref = ref[strings.IndexByte(ref, byte(' '))+1:]
ref = strings.TrimRightFunc(ref, issueIndexTrimRight)
- if len(ref) == 0 {
+ if ref == "" {
continue
}