From 93ce253d1e95d7410c33aabd312562a4f4efe512 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 12 May 2024 08:23:34 -0400 Subject: [PATCH] prettier --- apps/ssb/tf-tab-connections.js | 35 +++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index 6d84807e..eb43803d 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -105,14 +105,16 @@ class TfTabConnectionsElement extends LitElement { } render_connection(connection) { - let requests = Object.values(connection.requests.reduce(function(accumulator, value) { - let key = `${value.name}:${Math.sign(value.request_number)}`; - if (!accumulator[key]) { - accumulator[key] = Object.assign({count: 0}, value); - } - accumulator[key].count++; - return accumulator; - }, {})); + let requests = Object.values( + connection.requests.reduce(function (accumulator, value) { + let key = `${value.name}:${Math.sign(value.request_number)}`; + if (!accumulator[key]) { + accumulator[key] = Object.assign({count: 0}, value); + } + accumulator[key].count++; + return accumulator; + }, {}) + ); return html`