pgm: Fix missing braces in Status.run()

Change-Id: Ie30df8ed3d9a1e676f130214a173b622eaf67c6f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-01-21 23:47:13 +01:00
parent c6bd13922f
commit 88d60bf51a
1 changed files with 4 additions and 2 deletions

View File

@ -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) {