-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unnecessary check before unregister/1
Reduce cpu cycles for `unregister/1` by removing the check to see if it is already registered. Now it simply returns `true` if the process is successful or raises a `badarg` error on failure, following the expected outputs for OTP. Signed-off-by: Winford <dwinford@pm.me>
- Loading branch information
Winford
committed
Oct 16, 2022
1 parent
bcb425d
commit 31e5b97
Showing
2 changed files
with
9 additions
and
9 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
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