Skip to content

Commit

Permalink
chore: Run lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iandesj committed Apr 26, 2024
1 parent 35b8fdc commit 2daca6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/labextension/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export namespace ResourceUsage {
/**
* A model for holding resource usage warnings.
*/
constructor(memory: boolean = false, cpu: boolean = false, disk: boolean = false) {
constructor(memory = false, cpu = false, disk = false) {
this._memory = memory;
this._cpu = cpu;
this._disk = disk;
Expand Down Expand Up @@ -245,7 +245,11 @@ export namespace ResourceUsage {
const memoryLimits = value.limits.memory;
const memoryLimit = memoryLimits?.pss ?? memoryLimits?.rss ?? null;
const [currentMemory, memUnits] = convertToLargestUnit(numBytes);
const usageWarnings = new ResourceUsageWarning(value.limits.memory?.warn, value.limits.cpu?.warn, value.limits.disk?.warn);
const usageWarnings = new ResourceUsageWarning(
value.limits.memory?.warn,
value.limits.cpu?.warn,
value.limits.disk?.warn
);

this._memoryAvailable = numBytes !== undefined;
this._currentMemory = currentMemory;
Expand Down

0 comments on commit 2daca6e

Please sign in to comment.