Skip to content

Commit 52fa6e1

Browse files
jtpiokrassowski
andauthored
Use the Nullish coalescing operator
Co-authored-by: Michał Krassowski <[email protected]>
1 parent 3f50379 commit 52fa6e1

File tree

1 file changed

+1
-1
lines changed
  • jupyter_resource_usage/static

1 file changed

+1
-1
lines changed

jupyter_resource_usage/static/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ define([
6060
var display = totalMemoryUsage;
6161

6262
if (limits['memory']) {
63-
limit = limits['memory']['pss'] || limits['memory']['rss'];
63+
limit = limits['memory']['pss'] ?? limits['memory']['rss'];
6464
if (limit) {
6565
maxMemoryUsage = humanFileSize(limit);
6666
display += " / " + maxMemoryUsage

0 commit comments

Comments
 (0)