Skip to content

Commit

Permalink
Replace size() > 0 check by !empty()
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strickroth <[email protected]>
  • Loading branch information
csware committed Dec 23, 2012
1 parent 413a98a commit 4e1fe73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Git/GitStatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ int GitStatus::GetDirStatus(const CString &gitdir,const CString &subpath,git_wc_
//Check if new init repository
SHARED_TREE_PTR treeptr = g_HeadFileMap.SafeGet(gitdir);

if (treeptr->size() > 0 || treeptr->HeadIsEmpty())
if (!treeptr->empty() || treeptr->HeadIsEmpty())
{
for(int i=start;i<=end;i++)
{
Expand Down

0 comments on commit 4e1fe73

Please sign in to comment.