Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Make angular-pipes work with strictNullChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBanksNZ committed Jul 27, 2017
1 parent 9991634 commit 60cd35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/bytes.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class BytesPipe implements PipeTransform {
const format = BytesPipe.formats[key];
if (bytes < format.max) {

const prev = BytesPipe.formats[format.prev];
const prev = format.prev ? BytesPipe.formats[format.prev] : undefined;

const result = prev ?
toDecimal(bytes / prev.max, decimal) :
Expand Down

0 comments on commit 60cd35a

Please sign in to comment.