ssg: StaticSitePost: the ?? operator didn't do what I thought it did
This commit is contained in:
parent
a00b06dd1b
commit
b10e85e829
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue