Fix warning raised for local variable hiding DfsPackFile#index
Change-Id: I45cd3be942f798d51af1e024ceb3f4d26c7af324
This commit is contained in:
parent
4f3db912ce
commit
a40abb0a19
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue