[CodeFactor] Apply fixes to commit 442a041

This commit is contained in:
codefactor-io 2023-11-19 13:04:10 +00:00
parent 442a041952
commit dab78fe190
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 9 additions and 11 deletions

View file

@ -70,11 +70,11 @@ export function sendModemPing(dxcall) {
export function sendModemARQRaw(mycall, dxcall, data, uuid) {
return apiPost("/modem/send_arq_raw", {
mycallsign: mycall,
dxcallsign: dxcall,
data: data,
uuid: uuid
});
mycallsign: mycall,
dxcallsign: dxcall,
data: data,
uuid: uuid,
});
}
export function sendModemTestFrame() {

View file

@ -24,7 +24,6 @@ import { sendModemARQRaw } from "../js/api.js";
const split_char = "0;1;";
// define default message object
interface Attachment {
content_type: string;
@ -1091,7 +1090,6 @@ export function sendMessage(obj) {
let filetype = obj._attachments[filename].content_type;
let file = obj._attachments[filename].data;
let data_with_attachment =
obj.timestamp +
split_char +
@ -1115,7 +1113,7 @@ export function sendMessage(obj) {
data_with_attachment,
);
let mycallsign = settings.remote.STATION.mycall + '-' + settings.remote.STATION.myssid;
sendModemARQRaw(mycallsign, dxcallsign, data, uuid)
}
let mycallsign =
settings.remote.STATION.mycall + "-" + settings.remote.STATION.myssid;
sendModemARQRaw(mycallsign, dxcallsign, data, uuid);
}