Fix warning raised for local variable hiding DfsPackFile#index

Change-Id: I45cd3be942f798d51af1e024ceb3f4d26c7af324
This commit is contained in:
Matthias Sohn 2023-08-31 15:13:34 +02:00
parent 4f3db912ce
commit a40abb0a19
1 changed files with 3 additions and 3 deletions

View File

@ -1051,11 +1051,11 @@ boolean hasObjectSizeIndex(DfsReader ctx) throws IOException {
* no object size index or a problem loading it.
*/
int getObjectSizeIndexThreshold(DfsReader ctx) throws IOException {
PackObjectSizeIndex index = getObjectSizeIndex(ctx);
if (index == null) {
PackObjectSizeIndex idx = getObjectSizeIndex(ctx);
if (idx == null) {
throw new IOException("Asking threshold of non-existing obj-size"); //$NON-NLS-1$
}
return index.getThreshold();
return idx.getThreshold();
}
/**