Skip to content

Commit

Permalink
Cleanup bool methods from partition
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed Sep 12, 2018
1 parent 767be3a commit e9c1aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/partition.cpp
Expand Up @@ -93,7 +93,7 @@ bool Partition::isEncrypted() const

bool Partition::isCryptoDevice() const
{
return d ? d->isCryptoDevice : false;
return d && d->isCryptoDevice;
}

Partition::StorageType Partition::storageType() const
Expand Down Expand Up @@ -129,7 +129,7 @@ QString Partition::filesystemType() const
bool Partition::isSupportedFileSystemType() const
{

return d ? d->isSupportedFileSystemType : false;
return d && d->isSupportedFileSystemType;
}

qint64 Partition::bytesAvailable() const
Expand Down

0 comments on commit e9c1aa8

Please sign in to comment.