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