File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,14 +196,16 @@ internal void OutputImageReferences(bool ocrImages = false, bool filteredOcrImag
196196 if ( ocrImages )
197197 {
198198 WriteOcrImageRefsToFile ( ) ;
199- } else if ( ocrImages && filteredOcrImage )
199+ }
200+ else if ( ocrImages && filteredOcrImage )
200201 {
201202 WriteFilteredOcrImageRefsToFile ( ) ;
202- } else
203+ }
204+ else
203205 {
204206 WriteImageRefsToFile ( ) ;
205207 }
206-
208+
207209 }
208210
209211 /// <summary>
@@ -327,17 +329,13 @@ internal List<Redirect> GetAllRedirects()
327329 if ( docfx == null )
328330 return null ;
329331
330- string ? docsetPath = null ;
331-
332- // If there's more than one docset, choose the one that includes the input directory.
333332 if ( docfx . build ? . content is not null )
334333 {
335334 foreach ( Content entry in docfx . build . content )
336335 {
337- if ( entry . src == null )
338- continue ;
336+ string ? docsetPath ;
339337
340- if ( entry . src . TrimEnd ( '/' ) == "." )
338+ if ( entry . src == null || entry . src . TrimEnd ( '/' ) == "." )
341339 docsetPath = DocFxDirectory ! . FullName ;
342340 else
343341 docsetPath = Path . GetFullPath ( entry . src , DocFxDirectory ! . FullName ) ;
You can’t perform that action at this time.
0 commit comments