Skip to content

Commit

Permalink
uevent: Fix clippy issue in test code
Browse files Browse the repository at this point in the history
Remove a bare `return` from a test function. This looks wrong but isn't
because the callers are all tests that just wait for a state change
caused by this test function.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel authored and egernst committed Jan 16, 2022
1 parent 365e358 commit 63c5a8a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/agent/src/uevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ pub(crate) fn spawn_test_watcher(sandbox: Arc<Mutex<Sandbox>>, uev: Uevent) {
if matcher.is_match(&uev) {
let (_, sender) = watch.take().unwrap();
let _ = sender.send(uev.clone());
return;
}
}
});
Expand Down

0 comments on commit 63c5a8a

Please sign in to comment.