Remove unnecessary else, use early return
This commit is contained in:
parent
1be0a9f3d5
commit
54b9f27ecc
|
@ -617,9 +617,9 @@ module.exports = function(registry) {
|
|||
|
||||
if (ds.idName) {
|
||||
return ds.idName(Model.modelName);
|
||||
} else {
|
||||
return 'id';
|
||||
}
|
||||
|
||||
return 'id';
|
||||
};
|
||||
|
||||
PersistedModel.setupRemoting = function() {
|
||||
|
|
Loading…
Reference in New Issue