Skip to content

Commit

Permalink
Update Storage.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rgonslayer committed Sep 19, 2022
1 parent 5f58e4c commit 8368100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/jarvis/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Storage(String filePath) {
* @throws IOException if error occurs when reading file.
*/
public List<Task> load() throws IOException {
File myFile = new File(System. getProperty("user. dir") + filePath);
File myFile = new File(System.getProperty("user. dir") + filePath);
List<Task> taskList = new ArrayList<>();
if (!myFile.createNewFile()) {
Scanner sc = new Scanner(myFile);
Expand Down Expand Up @@ -61,7 +61,7 @@ public List<Task> load() throws IOException {
* @throws IOException if error occurs when writing to data file.
*/
public void write(TaskList tasks) throws IOException {
File myFile = new File(System. getProperty("user. dir") + filePath);
File myFile = new File(System.getProperty("user. dir") + filePath);
if (!myFile.getParentFile().exists()) {
myFile.getParentFile().mkdirs();
}
Expand Down

0 comments on commit 8368100

Please sign in to comment.