Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 committed Nov 29, 2023
1 parent 4ef5381 commit 3206037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const deviceMemoryStart = new Gauge({
});

export function valueOrZero(value?: number): number {
if(value===undefined){
if (value === undefined) {
return 0;
}
return Number.isNaN(value) ? 0 : value;
Expand Down

0 comments on commit 3206037

Please sign in to comment.