Skip to content

Commit

Permalink
refactor: Globals.DataFolder -> Globals.GetDataFolderPath() (#7685)
Browse files Browse the repository at this point in the history
  • Loading branch information
Romazes authored Jan 9, 2024
1 parent 6879e93 commit 0a1e481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/Securities/SecurityDefinitionSymbolResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class SecurityDefinitionSymbolResolver
/// <param name="securitiesDefinitionKey">Location to read the securities definition data from</param>
private SecurityDefinitionSymbolResolver(IDataProvider dataProvider = null, string securitiesDefinitionKey = null)
{
_securitiesDefinitionKey = securitiesDefinitionKey ?? Path.Combine(Globals.DataFolder, "symbol-properties", "security-database.csv");
_securitiesDefinitionKey = securitiesDefinitionKey ?? Path.Combine(Globals.GetDataFolderPath("symbol-properties"), "security-database.csv");

_dataProvider = dataProvider ??
Composer.Instance.GetExportedValueByTypeName<IDataProvider>(
Expand Down
3 changes: 1 addition & 2 deletions Common/Securities/SymbolPropertiesDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ public static SymbolPropertiesDatabase FromDataFolder()
{
if (_dataFolderSymbolPropertiesDatabase == null)
{
var directory = Path.Combine(Globals.DataFolder, "symbol-properties");
_dataFolderSymbolPropertiesDatabase = new SymbolPropertiesDatabase(Path.Combine(directory, "symbol-properties-database.csv"));
_dataFolderSymbolPropertiesDatabase = new SymbolPropertiesDatabase(Path.Combine(Globals.GetDataFolderPath("symbol-properties"), "symbol-properties-database.csv"));
}
}
return _dataFolderSymbolPropertiesDatabase;
Expand Down

0 comments on commit 0a1e481

Please sign in to comment.