No need to check if the dir exists

pull/702/head
Bond_009 6 years ago
parent 48da8f429e
commit 3cd31cadf8

@ -20,10 +20,7 @@ namespace Emby.Server.Implementations.Activity
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{ {
// Ensure the dir exists // Ensure the dir exists
if (!Directory.Exists(_dataDirPath))
{
Directory.CreateDirectory(_dataDirPath); Directory.CreateDirectory(_dataDirPath);
}
optionsBuilder.UseSqlite($"Filename={Path.Combine(_dataDirPath, "activitylog.sqlite.db")}"); optionsBuilder.UseSqlite($"Filename={Path.Combine(_dataDirPath, "activitylog.sqlite.db")}");
} }

Loading…
Cancel
Save