Skip to content

Commit

Permalink
simplify null check I forgot last time
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Weirich <matthias.weirich@selectcode.de>
  • Loading branch information
vavido committed Jan 19, 2021
1 parent e4e25f0 commit 5d30f06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions javascript/lib/api/src/model/things.model.ts
Expand Up @@ -133,8 +133,7 @@ export class Features extends IndexedEntityModel<Feature> {
if (o === undefined) {
return o;
}
const features = IndexedEntityModel.fromPlainObject<Feature>(o, Feature.fromObject);
return features != null ? features : {};
return IndexedEntityModel.fromPlainObject<Feature>(o, Feature.fromObject);
}
}

Expand Down

0 comments on commit 5d30f06

Please sign in to comment.