Remove unneeded get()

This commit is contained in:
Jonas Kvinge
2021-06-22 14:02:37 +02:00
parent 6d8b0b3ab6
commit 215057ce6f
7 changed files with 13 additions and 13 deletions

View File

@@ -213,7 +213,7 @@ void MtpDevice::StartDelete() { StartCopy(nullptr); }
bool MtpDevice::DeleteFromStorage(const DeleteJob &job) {
if (!connection_.get() || !connection_->is_valid()) return false;
if (!connection_ || !connection_->is_valid()) return false;
// Extract the ID from the song's URL
QString filename = job.metadata_.url().path();