Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Clean up code stripping dvd or bluray device names.
The clang-tidy bugprone "branch clone" checker pointed out two places where it appears that the bodies of an if/then/else clause were duplicated. It appears that this code was designed to strip a device name from the front of the string, and replace a double "//" with a single slash. Rewrite these two clauses to simplify them. https://clang.llvm.org/extra/clang-tidy/checks/bugprone-branch-clone.html
- Loading branch information
1 parent
dbed56e
commit f855c53
Showing
2 changed files
with
10 additions
and
10 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