refactor: rename unreleased quarks to snake_case (#7483)

* refactor: rename `sequentialDownload` to `sequential_download`

* refactor: rename `beginPiece` to `begin_piece`

* refactor: rename `endPiece` to `end_piece`

* refactor: rename `ipProtocol` to `ip_protocol`

* refactor: rename `preferred-transport` to `preferred_transport`
This commit is contained in:
Yat Ho
2025-03-11 06:30:19 +08:00
committed by GitHub
parent 200af70762
commit 7b83c7d625
15 changed files with 72 additions and 72 deletions

View File

@@ -56,12 +56,12 @@ export class PrefsDialog extends EventTarget {
}
}
_onPortChecked(ipProtocol, response) {
_onPortChecked(ip_protocol, response) {
if (this.closed) {
return;
}
const element = this.elements.network.port_status_label[ipProtocol];
const element = this.elements.network.port_status_label[ip_protocol];
const is_open = response.arguments['port-is-open'] || false;
element.dataset.open = is_open;
if ('port-is-open' in response.arguments) {

View File

@@ -89,10 +89,10 @@ export class Remote {
this.sendRequest(o, callback, context);
}
checkPort(ipProtocol, callback, context) {
checkPort(ip_protocol, callback, context) {
const o = {
arguments: {
ipProtocol,
ip_protocol,
},
method: 'port-test',
};