chore: linting

This commit is contained in:
zhom
2025-12-01 12:29:21 +04:00
parent effe229067
commit a118ccc349
6 changed files with 19 additions and 24 deletions
+3
View File
@@ -29,6 +29,9 @@
}
},
"css": {
"parser": {
"tailwindDirectives": true
},
"formatter": {
"quoteStyle": "double"
}
-1
View File
@@ -443,7 +443,6 @@ impl ApiClient {
firefox_dev_api_base,
github_api_base,
chromium_api_base,
tor_archive_base,
}
}
+16 -20
View File
@@ -649,7 +649,7 @@ impl BrowserRunner {
}
BrowserType::Camoufox => {
// Camoufox uses nodecar for launching, URL opening is handled differently
return Err("URL opening in existing Camoufox instance is not supported".into());
Err("URL opening in existing Camoufox instance is not supported".into())
}
BrowserType::Chromium | BrowserType::Brave => {
#[cfg(target_os = "macos")]
@@ -856,25 +856,21 @@ impl BrowserRunner {
log::info!("Failed to open URL in existing browser: {e}");
// Fall back to launching a new instance
match final_profile.browser.as_str() {
_ => {
log::info!(
"Falling back to new instance for browser: {}",
final_profile.browser
);
// Fallback to launching a new instance for other browsers
self
.launch_browser_internal(
app_handle.clone(),
&final_profile,
url,
internal_proxy_settings,
None,
false,
)
.await
}
}
log::info!(
"Falling back to new instance for browser: {}",
final_profile.browser
);
// Fallback to launching a new instance for other browsers
self
.launch_browser_internal(
app_handle.clone(),
&final_profile,
url,
internal_proxy_settings,
None,
false,
)
.await
}
}
} else {
-1
View File
@@ -850,7 +850,6 @@ mod tests {
base_url.clone(), // firefox_dev_api_base
base_url.clone(), // github_api_base
base_url.clone(), // chromium_api_base
base_url.clone(), // tor_archive_base
)
}
-1
View File
@@ -59,7 +59,6 @@ impl ProfileImporter {
// Detect Zen Browser profiles
detected_profiles.extend(self.detect_zen_browser_profiles()?);
// Remove duplicates based on path
let mut seen_paths = HashSet::new();
let unique_profiles: Vec<DetectedProfile> = detected_profiles
-1
View File
@@ -287,7 +287,6 @@ const MultipleSelector = React.forwardRef<
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [debouncedSearchTerm, groupBy, open, triggerSearchOnFocus, onSearch]);
// biome-ignore lint/correctness/noNestedComponentDefinitions: public code, TODO: fix
const CreatableItem = () => {
if (!creatable) return undefined;
if (