Avoid shadowing function parameter

The function already has a parameter named `result`.
Also remove a duplicate variable since it already has a pref pointer at the start of the function.

PR #21571.
This commit is contained in:
Chocobo1
2024-10-12 15:04:47 +08:00
committed by GitHub
parent c4eeb4a14a
commit ac646f47a2
2 changed files with 3 additions and 4 deletions

View File

@@ -293,7 +293,6 @@ BitTorrent::LoadResumeDataResult BitTorrent::BencodeResumeDataStorage::loadTorre
if (!metadata.isEmpty())
{
const auto *pref = Preferences::instance();
const lt::bdecode_node torentInfoRoot = lt::bdecode(metadata, ec
, nullptr, pref->getBdecodeDepthLimit(), pref->getBdecodeTokenLimit());
if (ec)