diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2019-12-11 18:36:30 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-01-13 20:46:29 +0100 |
commit | 075baf29c5250bcb52634cd4f4ab678c68581808 (patch) | |
tree | 6228918275cc0a1570f46aadfbe487e9c18288f3 /server/sonar-web/src/main/js/components/SourceViewer/helpers | |
parent | 71c0f8cab2dfd8fcc6a1918e1681b821e446197e (diff) | |
download | sonarqube-075baf29c5250bcb52634cd4f4ab678c68581808.tar.gz sonarqube-075baf29c5250bcb52634cd4f4ab678c68581808.zip |
SONAR-12718 Hotspot Code Snippet
Diffstat (limited to 'server/sonar-web/src/main/js/components/SourceViewer/helpers')
-rw-r--r-- | server/sonar-web/src/main/js/components/SourceViewer/helpers/indexing.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/helpers/indexing.ts b/server/sonar-web/src/main/js/components/SourceViewer/helpers/indexing.ts index 19a98ba61c7..40652e92972 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/helpers/indexing.ts +++ b/server/sonar-web/src/main/js/components/SourceViewer/helpers/indexing.ts @@ -45,7 +45,7 @@ export function issuesByComponentAndLine( }, {}); } -export function locationsByLine(issues: T.Issue[]) { +export function locationsByLine(issues: Pick<T.Issue, 'textRange'>[]) { const index: { [line: number]: T.LinearIssueLocation[] } = {}; issues.forEach(issue => { getLinearLocations(issue.textRange).forEach(location => { |