Skip to content

Commit

Permalink
fix(pre-commit): move back folder + fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
miniben-90 committed Nov 20, 2024
1 parent d5c9c5f commit 56f0972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cd x-win-rs && cargo fmt -- --check && cargo clippy -- -D warnings && cargo test
cd ..
cargo fmt -- --check
cargo clippy -- -D warnings
yarn test
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,11 +452,9 @@ pub fn unsubscribe_active_window(thread_id: u32) -> Result<()> {
#[napi]
pub fn unsubscribe_all_active_window() -> Result<()> {
match THREAD_MANAGER.lock() {
Ok(thread_manager) => {
match thread_manager.stop_all_threads() {
Ok(_) => Ok(()),
Err(_) => Ok(()),
}
Ok(thread_manager) => match thread_manager.stop_all_threads() {
Ok(_) => Ok(()),
Err(_) => Ok(()),
},
Err(_) => Ok(()),
}
Expand Down

0 comments on commit 56f0972

Please sign in to comment.