提交 7fbf3b30 编写于 作者: C Cyrus Najmabadi

Move to contract

上级 9d7c6034
......@@ -135,8 +135,7 @@ protected override string GetDatabaseFilePath(string workingFolderPath)
EnsureDirectory(databaseFilePath);
var directoryName = Path.GetDirectoryName(databaseFilePath);
if (directoryName == null)
return null;
Contract.ThrowIfNull(directoryName);
return File.Open(
Path.Combine(directoryName, LockFile),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册