Skip to content

Commit def8ac1

Browse files
author
Douman
committed
Do not attempt to overwrite docs.rs link. Closes #1206
1 parent 31a5a35 commit def8ac1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/routes/crate/version.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export default Route.extend({
4141
};
4242

4343
const fetchCrateDocumentation = () => {
44-
if (!crate.get('documentation') ||
45-
crate.get('documentation').substr(0, 16) === 'https://docs.rs/') {
44+
if (!crate.get('documentation'))
4645
let crateName = crate.get('name');
4746
let crateVersion = params.version_num;
4847
this.get('ajax').request(`https://docs.rs/crate/${crateName}/${crateVersion}/builds.json`)

0 commit comments

Comments
 (0)