Skip to content

Commit

Permalink
remove unused condition
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 21, 2018
1 parent d5eade2 commit d0e2d26
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1072,11 +1072,6 @@
type = matches[1].replace(/^const$/, 'constant');
query = query.substring(matches[0].length);
}
// In case we just get a '!' as input, we can assume that the user is looking for the
// `Never` primitive type.
if (raw === '!') {
query = 'Never';
}

return {
raw: raw,
Expand Down

0 comments on commit d0e2d26

Please sign in to comment.