Skip to content

Commit 344309f

Browse files
committed
search: Remove unnecessary this.get() calls
1 parent 1b2b9ed commit 344309f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export default class SearchController extends Controller {
1616

1717
@computed('dataTask.{lastSuccessful,isRunning}')
1818
get hasData() {
19-
return this.get('dataTask.lastSuccessful') || !this.get('dataTask.isRunning');
19+
return this.dataTask.lastSuccessful || !this.dataTask.isRunning;
2020
}
2121

2222
@computed('dataTask.{lastSuccessful,isRunning}')
2323
get firstResultPending() {
24-
return !this.get('dataTask.lastSuccessful') && this.get('dataTask.isRunning');
24+
return !this.dataTask.lastSuccessful && this.dataTask.isRunning;
2525
}
2626

2727
@readOnly('model.meta.total') totalItems;

0 commit comments

Comments
 (0)