mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-28 07:48:36 +02:00
Remove redundant nullptr checks before deallocation
Rationale: * delete ptr is a no-op if ptr is nullptr
This commit is contained in:
@@ -364,8 +364,7 @@ void PaymentServer::initNetManager()
|
||||
{
|
||||
if (!optionsModel)
|
||||
return;
|
||||
if (netManager != nullptr)
|
||||
delete netManager;
|
||||
delete netManager;
|
||||
|
||||
// netManager is used to fetch paymentrequests given in bitcoin: URIs
|
||||
netManager = new QNetworkAccessManager(this);
|
||||
|
||||
Reference in New Issue
Block a user