Skip to content

Commit 8cea984

Browse files
committed
Lint clean-up
1 parent 05b97a3 commit 8cea984

File tree

3 files changed

+1690
-1393
lines changed

3 files changed

+1690
-1393
lines changed

lib/dual-list.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ export class DualListComponent implements DoCheck, OnChanges {
357357
// Should only ever be 1
358358
if (mv.length === 1) {
359359
// Add if not already in target.
360-
if ( target.list.filter( trg => { return trg._id === mv[0]._id; }).length === 0) {
360+
if (target.list.filter(trg => trg._id === mv[0]._id).length === 0) {
361361
target.list.push( mv[0] );
362362
}
363363

@@ -384,7 +384,7 @@ export class DualListComponent implements DoCheck, OnChanges {
384384
}
385385

386386
isItemSelected(list:Array<any>, item:any) {
387-
if (list.filter( e => { return Object.is(e, item); }).length > 0) {
387+
if (list.filter(e => Object.is(e, item)).length > 0) {
388388
return true;
389389
}
390390
return false;

0 commit comments

Comments
 (0)