Skip to content

Commit 7680ab6

Browse files
committed
jshint review
1 parent b875c83 commit 7680ab6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

app/js/common-objects/models/product_instance_iteration.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,11 @@ define(['backbone'
5252
},
5353
getBasedOnName: function () {
5454
var basedOn = this.get('basedOn');
55-
if (basedOn)
56-
return basedOn.name;
57-
else
58-
return undefined;
55+
return basedOn ? basedOn.name : undefined;
5956
},
6057
getBasedOnId: function () {
6158
var basedOn = this.get('basedOn');
62-
if (basedOn)
63-
return basedOn.id;
64-
else
65-
return undefined;
59+
return basedOn ? basedOn.id : undefined;
6660
},
6761
getUpdateAuthor: function () {
6862
return this.get('updateAuthor');

0 commit comments

Comments
 (0)