Skip to content

Commit

Permalink
fixed findings 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed Aug 5, 2024
1 parent 55f61f0 commit 656413d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roboquant-avro/src/main/kotlin/org/roboquant/avro/AvroFeed.kt
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ class AvroFeed(private val file: File) : Feed {
* This is sample data and should NOT be relies on for real back testing.
*/
fun sp25(): AvroFeed {
val path = copy("/sp25.avro")
val path = copyFirstTime("/sp25_v1.0.avro")
return AvroFeed(path)
}

/**
* Copy file from jar to local filesystem
*/
private fun copy(fileName: String): Path {
private fun copyFirstTime(fileName: String): Path {
val path = Paths.get(Config.home.toString(), fileName)
if (Files.notExists(path)) {
val stream = AvroFeed::class.java.getResourceAsStream(fileName)
Expand Down

0 comments on commit 656413d

Please sign in to comment.