Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
poolmanager: avoid duplicating magic numbers
Motivation: Several places set the error to zero to reset the result back to a success. Avoid this duplication. Modification: Introduce a new method that clears the error. Remove some redundant calls to clear the error: these return a code that triggers a subsequent error-clearing step. Reorder some error-clearing calls so it appears immediately before the nextStep call. Result: No user or admin obserable changes. Code is slightly easier to read and understand. Target: master Requires-notes: no Requires-book: no Patch: https://rb.dcache.org/r/12782/ Acked-by: Lea Morschel Acked-by: Albert Rossi
- Loading branch information
1 parent
80d5540
commit 924f1c1
Showing
1 changed file
with
14 additions
and
15 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