mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-28 17:22:15 +08:00
fix: unblock pre-push checks
This commit is contained in:
@@ -80,7 +80,7 @@ async function writeInstalledFingerprint(fingerprint) {
|
||||
)
|
||||
}
|
||||
|
||||
export function windowsElevationInvocation(
|
||||
function windowsElevationInvocation(
|
||||
installer,
|
||||
environment = process.env,
|
||||
) {
|
||||
|
||||
@@ -172,10 +172,10 @@ where
|
||||
|
||||
/// Treats a missing network service as a completed disable: with nothing to write to, the
|
||||
/// requested "no proxy" state already holds. Turning a proxy on must still fail.
|
||||
fn tolerate_missing_network_service(enabling: bool, outcome: sysproxy::Result<()>) -> Result<()> {
|
||||
fn tolerate_missing_network_service(_enabling: bool, outcome: sysproxy::Result<()>) -> Result<()> {
|
||||
match outcome {
|
||||
#[cfg(target_os = "macos")]
|
||||
Err(sysproxy::Error::NoActiveNetworkService) if !enabling => {
|
||||
Err(sysproxy::Error::NoActiveNetworkService) if !_enabling => {
|
||||
logging!(warn, Type::Core, "no active network service, nothing to turn off");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user