diff --git a/devtools/client/memory/actions/snapshot.js b/devtools/client/memory/actions/snapshot.js index ec954f05dde2..9d840aa40825 100644 --- a/devtools/client/memory/actions/snapshot.js +++ b/devtools/client/memory/actions/snapshot.js @@ -291,12 +291,11 @@ const getCurrentCensusTaker = exports.getCurrentCensusTaker = function (currentV switch (currentView) { case viewState.TREE_MAP: return takeTreeMap; - break; case viewState.CENSUS: return takeCensus; - break; + default: + return defaultCensusTaker; } - return defaultCensusTaker; }; /**