aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2022-03-06 16:03:27 +0800
committerGitHub <noreply@github.com>2022-03-06 16:03:27 +0800
commit442609fa1786ef651c6661ce95bd2ddb25156080 (patch)
tree53129c73d016fd50b04fdc09209461075da75284 /internal
parent2d609b8b31ab3dea7e9ae3f315e945082b23e8ad (diff)
autofix: simplify slice expression to sliced value itself (#6801)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal')
-rw-r--r--internal/markup/markup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/markup/markup.go b/internal/markup/markup.go
index 3f2a1172..b542f63d 100644
--- a/internal/markup/markup.go
+++ b/internal/markup/markup.go
@@ -141,7 +141,7 @@ func RenderCrossReferenceIssueIndexPattern(rawBytes []byte, _ string, _ map[stri
// RenderSha1CurrentPattern renders SHA1 strings to corresponding links that assumes in the same repository.
func RenderSha1CurrentPattern(rawBytes []byte, urlPrefix string) []byte {
- return []byte(Sha1CurrentPattern.ReplaceAllStringFunc(string(rawBytes[:]), func(m string) string {
+ return []byte(Sha1CurrentPattern.ReplaceAllStringFunc(string(rawBytes), func(m string) string {
if com.StrTo(m).MustInt() > 0 {
return m
}