Skip to content

Commit

Permalink
Fix instantiation to use
Browse files Browse the repository at this point in the history
linkToData variable
  • Loading branch information
MathieuSoysal committed Jan 12, 2024
1 parent c47f8a2 commit 2ca7f9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/github/mathieusoysal/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public static void main(String[] args)
}

private static void createArchiveSumUpForThisDay() {
var dataCollector = new DataCollectorFromArchive(LINK_TO_DATA_PROPERTIE_NAME);
String linkToData = getPropertie(LINK_TO_DATA_PROPERTIE_NAME);
var dataCollector = new DataCollectorFromArchive(linkToData);
var sumUpOfTheDay = dataCollector.getSumUpOfDay(LocalDate.now());
DataSaver.save(ArchiveName.DAY_SUM_UP, sumUpOfTheDay);
}
Expand Down

0 comments on commit 2ca7f9c

Please sign in to comment.