Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaosongzs committed Oct 12, 2023
1 parent df3d930 commit a9538bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ private URI createAndArchive(PullRequest pr, Repository localRepository, Path sc
}

public Repository getJsonLocalStorage(HostedRepositoryPool hostedRepositoryPool, Path scratchPath) throws IOException {
return hostedRepositoryPool.checkout(jsonStorage, storageRef, scratchPath);
return jsonStorage == null ? null : hostedRepositoryPool.checkout(jsonStorage, storageRef, scratchPath);
}

public Repository getHtmlLocalStorage(HostedRepositoryPool hostedRepositoryPool, Path scratchPath) throws IOException {
return hostedRepositoryPool.checkout(htmlStorage, storageRef, scratchPath);
return htmlStorage == null ? null : hostedRepositoryPool.checkout(htmlStorage, storageRef, scratchPath);
}

interface WebrevGenerator {
Expand Down

0 comments on commit a9538bc

Please sign in to comment.