ssg: StaticSitePost: the ?? operator didn't do what I thought it did

This commit is contained in:
Nick Vella 2019-07-19 01:13:37 +10:00
parent a00b06dd1b
commit b10e85e829
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ namespace OpenLiveWriter.BlogClient.Clients.StaticSite
return false;
}).DefaultIfEmpty(null).FirstOrDefault();
return _filePathById = foundFile ?? Path.Combine(SiteConfig.LocalSitePath, SiteConfig.PostsPath, foundFile);
return _filePathById = (foundFile == null ? null : Path.Combine(SiteConfig.LocalSitePath, SiteConfig.PostsPath, foundFile));
}
}