From ee4479221e9edc89b0557e5f7429e80df54156eb Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Fri, 24 Feb 2023 03:45:49 +0000 Subject: [PATCH 1/2] 'Refactored by Sourcery' --- tnc/data_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index 820a625c..02ad4b1b 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -771,17 +771,15 @@ class DATA: static.RX_FRAME_BUFFER = static.RX_FRAME_BUFFER[ : search_position + get_position ] - static.RX_FRAME_BUFFER += temp_burst_buffer self.log.warning( "[TNC] ARQ | RX | replacing existing buffer data", area=search_area, pos=get_position, ) - # If we don't find data in this range, we really have new data and going to replace it else: - static.RX_FRAME_BUFFER += temp_burst_buffer self.log.debug("[TNC] ARQ | RX | appending data to buffer") + static.RX_FRAME_BUFFER += temp_burst_buffer # Check if we didn't receive a BOF and EOF yet to avoid sending # ack frames if we already received all data if ( From 3c1c54e6fdd9694ca8a0370330cfd55be9769ffd Mon Sep 17 00:00:00 2001 From: "sourcery-ai[bot]" Date: Fri, 24 Feb 2023 03:46:06 +0000 Subject: [PATCH 2/2] Prettified Code! --- gui/preload-chat.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/preload-chat.js b/gui/preload-chat.js index b633ceca..f3069ba5 100644 --- a/gui/preload-chat.js +++ b/gui/preload-chat.js @@ -696,7 +696,9 @@ update_chat = function (obj) { if (filetype == "image/png" || filetype == "png") { var fileheader = `
- +

${filename} ${filesize} @@ -1399,7 +1401,7 @@ function atob_FD(data) { * @returns base64 bota compatible data */ function atoa_FD(data) { - return window.btoa(Buffer.from(data,"base64").toString("utf8")); + return window.btoa(Buffer.from(data, "base64").toString("utf8")); } function returnObjFromCallsign(database, callsign) { users