-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel/vtpm/wrapper: reduce indentation in some wrappers
In several places we use `if let Ok(foo) = func() {` creating large indented blocks, let's replace with `let Ok(foo) = func() else {` by immediately returning a null pointer and reducing the indentation to make the code more readable. Suggested-by: Carlos López <[email protected]> Signed-off-by: Stefano Garzarella <[email protected]>
- Loading branch information
1 parent
d350ae4
commit 73efb3d
Showing
1 changed file
with
48 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters