Skip to content

Commit 5279fd9

Browse files
committed
Removed unnecessary code.
1 parent 5fda890 commit 5279fd9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

SQLite.CodeFirst/Internal/Utility/ConnectionStringParser.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public static string GetDataSource(string connectionString)
2222
if (strings.ContainsKey(DataSourceToken))
2323
{
2424
var path = ExpandDataDirectory(ParseConnectionString(connectionString)[DataSourceToken]);
25-
// remove quotation mark if exists
2625
return path.Trim('"');
2726
}
27+
2828
// TODO: Implement FullUri parsing.
2929
if (connectionString.Contains(":memory:"))
3030
{

SQLite.CodeFirst/Internal/Utility/InMemoryAwareFile.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ public static void CreateDirectory(string path)
5252

5353
private static bool IsInMemoryPath(string path)
5454
{
55-
// If the path doesn't exists then the datasource was empty as probably a FullUri was specified instead.
56-
return string.IsNullOrEmpty(path)
57-
|| string.Equals(path, ":memory:", StringComparison.OrdinalIgnoreCase);
55+
return string.Equals(path, ":memory:", StringComparison.OrdinalIgnoreCase);
5856
}
5957
}
6058
}

0 commit comments

Comments
 (0)