pgm: Fix missing braces in Status.run()
Change-Id: Ie30df8ed3d9a1e676f130214a173b622eaf67c6f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
c6bd13922f
commit
88d60bf51a
|
@ -93,9 +93,11 @@ class Status extends TextBuiltin {
|
|||
protected void run() {
|
||||
try (Git git = new Git(db)) {
|
||||
StatusCommand statusCommand = git.status();
|
||||
if (filterPaths != null && filterPaths.size() > 0)
|
||||
for (String path : filterPaths)
|
||||
if (filterPaths != null && filterPaths.size() > 0) {
|
||||
for (String path : filterPaths) {
|
||||
statusCommand.addPath(path);
|
||||
}
|
||||
}
|
||||
org.eclipse.jgit.api.Status status = statusCommand.call();
|
||||
printStatus(status);
|
||||
} catch (GitAPIException | NoWorkTreeException | IOException e) {
|
||||
|
|
Loading…
Reference in New Issue