@@ -251,16 +251,9 @@ export async function setupDiffInformedQueryRun(
251251 diffRanges ,
252252 checkoutPath ,
253253 ) ;
254- if ( packDir === undefined ) {
255- logger . warning (
256- "Cannot create diff range extension pack for diff-informed queries; " +
257- "reverting to performing full analysis." ,
258- ) ;
259- } else {
260- logger . info (
261- `Successfully created diff range extension pack at ${ packDir } .` ,
262- ) ;
263- }
254+ logger . info (
255+ `Successfully created diff range extension pack at ${ packDir } .` ,
256+ ) ;
264257 return packDir ;
265258 } ,
266259 ) ;
@@ -314,18 +307,13 @@ extensions:
314307 * @param ranges The file line ranges, as returned by
315308 * `getPullRequestEditedDiffRanges`.
316309 * @param checkoutPath The path at which the repository was checked out.
317- * @returns The absolute path of the directory containing the extension pack, or
318- * `undefined` if no extension pack was created.
310+ * @returns The absolute path of the directory containing the extension pack.
319311 */
320312function writeDiffRangeDataExtensionPack (
321313 logger : Logger ,
322- ranges : DiffThunkRange [ ] | undefined ,
314+ ranges : DiffThunkRange [ ] ,
323315 checkoutPath : string ,
324- ) : string | undefined {
325- if ( ranges === undefined ) {
326- return undefined ;
327- }
328-
316+ ) : string {
329317 if ( ranges . length === 0 ) {
330318 // An empty diff range means that there are no added or modified lines in
331319 // the pull request. But the `restrictAlertsTo` extensible predicate
0 commit comments