Skip to content

Commit

Permalink
results-container.js: combine
Browse files Browse the repository at this point in the history
Probably less readable
  • Loading branch information
XhmikosR committed Sep 23, 2021
1 parent a14e7d1 commit 3176d92
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/js/page/ui/results-container.js
Expand Up @@ -17,10 +17,8 @@ export default class ResultsContainer {
}

_positionResults() {
if (this._query.matches) {
this._container.append(this._results.container);
} else {
this._mobileContainer.append(this._results.container);
}
(this._query.matches ? this._container : this._mobileContainer).append(
this._results.container
);
}
}

0 comments on commit 3176d92

Please sign in to comment.