diff options
author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2022-03-06 16:03:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 16:03:27 +0800 |
commit | 442609fa1786ef651c6661ce95bd2ddb25156080 (patch) | |
tree | 53129c73d016fd50b04fdc09209461075da75284 /internal | |
parent | 2d609b8b31ab3dea7e9ae3f315e945082b23e8ad (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.go | 2 |
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 } |