Get rid of single-line if statements
Change-Id: I2b603563c650e83354af95ee6fb2fb4c9134fe86
diff --git a/src/cli.cpp b/src/cli.cpp
index 01e504b..8a3536f 100644
--- a/src/cli.cpp
+++ b/src/cli.cpp
@@ -156,8 +156,9 @@
historyFile = std::string(home) + "/.local/share/" + HISTORY_FILE_NAME;
}
- if (historyFile)
+ if (historyFile) {
lineEditor.history_load(historyFile.value());
+ }
while (true) {
auto line = lineEditor.input(parser.currentNode() + "> ");
@@ -191,8 +192,9 @@
lineEditor.history_add(line);
}
- if (historyFile)
+ if (historyFile) {
lineEditor.history_save(historyFile.value());
+ }
return 0;
}