mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
Fix sonar finding
This commit is contained in:
@@ -220,11 +220,7 @@ public class GitBrowseCommand extends AbstractGitCommand
|
||||
|
||||
RevTree tree = revWalk.parseTree(revId);
|
||||
|
||||
if (tree != null) {
|
||||
treeWalk.addTree(tree);
|
||||
} else {
|
||||
throw new IllegalStateException("could not find tree for " + revId.name());
|
||||
}
|
||||
treeWalk.addTree(tree);
|
||||
|
||||
if (isRootRequest()) {
|
||||
FileObject result = createEmptyRoot();
|
||||
|
||||
Reference in New Issue
Block a user