Skip to content

Commit 71adbf0

Browse files
authored
Make linter happy
1 parent 3d36c75 commit 71adbf0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/helpers/github-link.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ export function githubLink([project, version, file, line], { isEdit = false }) {
1515
// 'packages/packages' in the GitHub source URL
1616
// For example, without this fixedFile line, a `file` with value
1717
// '../packages/store/addon/-private/record-arrays/identifier-array.ts'
18-
// would become
18+
// would become
1919
// 'https://github.com/emberjs/data/tree/v4.10.0/packages/packages/store/addon/-private/record-arrays/identifier-array.ts#L118'
2020
const fixedFile = file?.replace('../packages/', '../');
2121

22-
const result = `https://github.com/${
22+
return `https://github.com/${
2323
githubMap[project]
2424
}/tree/v${version}${mainDir(project, version)}${fixedFile}#L${line}`;
25-
return result;
2625
}
2726

2827
export default helper(githubLink);

0 commit comments

Comments
 (0)