aboutsummaryrefslogtreecommitdiffstats
path: root/modules/references
diff options
context:
space:
mode:
Diffstat (limited to 'modules/references')
-rw-r--r--modules/references/references.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/references/references.go b/modules/references/references.go
index 7f5086d093..8fd0c8f055 100644
--- a/modules/references/references.go
+++ b/modules/references/references.go
@@ -379,7 +379,7 @@ func FindRenderizableReferenceAlphanumeric(content string) (bool, *RenderizableR
action, location := findActionKeywords([]byte(content), match[2])
return true, &RenderizableReference{
- Issue: string(content[match[2]:match[3]]),
+ Issue: content[match[2]:match[3]],
RefLocation: &RefSpan{Start: match[2], End: match[3]},
Action: action,
ActionLocation: location,
@@ -506,7 +506,7 @@ func getCrossReference(content []byte, start, end int, fromLink, prOnly bool) *r
}
repo := string(content[start : start+sep])
issue := string(content[start+sep+1 : end])
- index, err := strconv.ParseInt(string(issue), 10, 64)
+ index, err := strconv.ParseInt(issue, 10, 64)
if err != nil {
return nil
}