mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[partition] Remove superfluous null check
delete is specified to handle nullptr gracefully. FIXES #1012
This commit is contained in:
parent
81ea5f5249
commit
08d41f745b
1 changed files with 1 additions and 2 deletions
|
@ -98,8 +98,7 @@ erase(DeviceList& l, DeviceList::iterator& it)
|
|||
{
|
||||
Device* p = *it;
|
||||
auto r = l.erase( it );
|
||||
if (p)
|
||||
delete p;
|
||||
delete p;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue