Skip to content

Commit 5fca7bd

Browse files
authored
Merge pull request rust-lang#1190 from tchak/ember-keyboard
Remove unnecessary check
2 parents 309e6d5 + 2f002cf commit 5fca7bd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/controllers/application.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ export default Controller.extend(EKMixin, {
1414
return;
1515
}
1616
event.preventDefault();
17-
let searchInput = document.querySelector('#cargo-desktop-search');
18-
if (searchInput) {
19-
searchInput.focus();
20-
}
17+
document.querySelector('#cargo-desktop-search').focus();
2118
}),
2219

2320
actions: {

0 commit comments

Comments
 (0)