Skip to content

Commit

Permalink
format name col
Browse files Browse the repository at this point in the history
  • Loading branch information
AGawrys committed Nov 6, 2023
1 parent be8a857 commit 1886c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/dev/query/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ export async function run(input: string[]) {
for (let [k, v] of nullthrows(cacheInfo).entries()) {
let s = serialized.get(k);
invariant(s != null);
table.push([k, ...v, s]);
let name = k.includes('_request') ? k.split('_request')[0] : k;
table.push([name, ...v, s]);
}
function getColumnSum(t: Array<Array<string | number>>, col: number) {
if (t == null) {
Expand Down
5 changes: 0 additions & 5 deletions packages/dev/query/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ export async function loadGraphs(cacheDir: string): Promise<{|
requestTracker.graph.getNodeIdByContentKey(bundleGraphRequestNode.id),
).find(n => n.type === 'request' && n.value.type === 'asset_graph_request');
if (assetGraphRequest != null) {
invariant(
assetGraphRequest.value != null &&
typeof assetGraphRequest.value != 'string',
);

assetGraph = AssetGraph.deserialize(
(await loadLargeBlobRequestRequest(cache, assetGraphRequest, cacheInfo))
.assetGraph.value,
Expand Down

0 comments on commit 1886c66

Please sign in to comment.