KDEConnectPluginConfig: Remove unneeded check for delete

Deleting a nullptr is a noop
This commit is contained in:
Alexander Lohnau 2023-07-25 21:27:22 +02:00
parent aeb1d7f4cc
commit eedbfe9b49

View file

@ -40,9 +40,7 @@ KdeConnectPluginConfig *KdeConnectPlugin::config() const
KdeConnectPlugin::~KdeConnectPlugin()
{
if (d->m_config) {
delete d->m_config;
}
delete d->m_config;
}
const Device *KdeConnectPlugin::device()