Skip to content

Commit 4bafb5d

Browse files
committed
controllers/crate/version: Use destructured computed() method
1 parent 5de89d2 commit 4bafb5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/controllers/crate/version.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const { computed } = Ember;
88
export default Ember.Controller.extend({
99
isDownloading: false,
1010

11-
downloadsContext: Ember.computed('requestedVersion', 'model', 'crate', function() {
11+
downloadsContext: computed('requestedVersion', 'model', 'crate', function() {
1212
return this.get('requestedVersion') ? this.get('model') : this.get('crate');
1313
}),
1414
downloads: computed.alias('downloadsContext.version_downloads'),
15-
extraDownloads: Ember.computed('downloads.content.meta.extra_downloads', function() {
15+
extraDownloads: computed('downloads.content.meta.extra_downloads', function() {
1616
return this.get('downloads.content.meta.extra_downloads') || [];
1717
}),
1818

@@ -110,7 +110,7 @@ export default Ember.Controller.extend({
110110
},
111111
},
112112

113-
downloadData: Ember.computed('downloads', 'extraDownloads', 'requestedVersion', function() {
113+
downloadData: computed('downloads', 'extraDownloads', 'requestedVersion', function() {
114114
let { downloads, extraDownloads: extra } = this.getProperties('downloads', 'extraDownloads');
115115
if (!downloads || !extra) {
116116
return;

0 commit comments

Comments
 (0)