Skip to content

Commit

Permalink
feat(import): allow to use tuples and tuple_file together
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBertocci authored and Daniel Bertocci committed Jul 29, 2024
1 parent c8a792e commit 1e6fda5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/storetest/storedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ func (storeData *StoreData) LoadTuples(basePath string) error {
tuples, err := tuplefile.ReadTupleFile(path.Join(basePath, storeData.TupleFile))
if err != nil {
errs = fmt.Errorf("failed to process global tuple %s file due to %w", storeData.TupleFile, err)
} else {
} else if storeData.Tuples == nil {
storeData.Tuples = tuples
} else {
storeData.Tuples = append(storeData.Tuples, tuples...)
}
}

Expand Down

0 comments on commit 1e6fda5

Please sign in to comment.