Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Mar 25, 2020
1 parent 99785a5 commit 981e359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/StringColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,12 @@ export default class StringColumn extends ValueColumn<string> {
}
// take the smallest one
if (valueCache) {
return valueCache.reduce((acc, v) => acc == null || v < acc ? v : acc, null as null|string);
return valueCache.reduce((acc, v) => acc == null || v < acc ? v : acc, <null |string>null);
}
return rows.reduce((acc, d) => {
const v = this.getValue(d);
return acc == null || (v != null && v < acc) ? v : acc;
}, null as null | string);
}, <null | string>null);
}

toCompareGroupValueType() {
Expand Down

0 comments on commit 981e359

Please sign in to comment.