Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Oct 22, 2019
1 parent 9985e5f commit f5e7948
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/plugins/datastoreinterface.cpp
Expand Up @@ -283,10 +283,12 @@ quint64 DataStoreVariable::size(int pRun) const
{
// Return our size for the given run

if (mRuns.isEmpty()) {
return 0;
}

if (pRun == -1) {
return (!mRuns.isEmpty())?
mRuns.last()->size():
0;
return mRuns.last()->size();
}

return ((pRun >= 0) && (pRun < mRuns.count()))?
Expand Down

0 comments on commit f5e7948

Please sign in to comment.