mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-10 20:32:54 +00:00
uevent: Fix clippy issue in test code
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>
This commit is contained in:
parent
365e358115
commit
63c5a8aa53
@ -240,7 +240,6 @@ pub(crate) fn spawn_test_watcher(sandbox: Arc<Mutex<Sandbox>>, uev: Uevent) {
|
|||||||
if matcher.is_match(&uev) {
|
if matcher.is_match(&uev) {
|
||||||
let (_, sender) = watch.take().unwrap();
|
let (_, sender) = watch.take().unwrap();
|
||||||
let _ = sender.send(uev.clone());
|
let _ = sender.send(uev.clone());
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user