Update src/main/java/dev/sillyangel/calc/CalculatorHistory.java
All checks were successful
Build the Jar / build (push) Successful in 10s

This commit is contained in:
2026-01-09 09:06:35 -06:00
parent 0f95cdbf9b
commit 3c9d14ca39

View File

@@ -27,7 +27,7 @@ public class CalculatorHistory {
* Initializes the history file and directory structure. * Initializes the history file and directory structure.
* Creates the directory and file if they don't exist, and loads existing history. * Creates the directory and file if they don't exist, and loads existing history.
*/ */
private void initializeHistoryFile() { public void initializeHistoryFile() {
try { try {
// Create directory if it doesn't exist // Create directory if it doesn't exist
Path dir = Paths.get(HISTORY_DIR); Path dir = Paths.get(HISTORY_DIR);
@@ -75,7 +75,7 @@ public class CalculatorHistory {
/** /**
* Loads history from the file into memory. * Loads history from the file into memory.
*/ */
private void loadHistory() { public void loadHistory() {
try { try {
if (Files.exists(historyFilePath)) { if (Files.exists(historyFilePath)) {
List<String> lines = Files.readAllLines(historyFilePath); List<String> lines = Files.readAllLines(historyFilePath);
@@ -135,4 +135,3 @@ public class CalculatorHistory {
return historyFilePath.toString(); return historyFilePath.toString();
} }
} }