Skip to content

Commit 8642432

Browse files
committed
pool.c: Remove identical if condition
It is always true. Found by Cppcheck (identicalInnerCondition).
1 parent e961dbc commit 8642432

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pool.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,7 @@ pool_createwhatprovides(Pool *pool)
594594
}
595595
else if (!pool->addedfileprovides && pool->disttype == DISTTYPE_RPM)
596596
{
597-
if (!pool->addedfileprovides)
598-
POOL_DEBUG(SOLV_DEBUG_STATS, "WARNING: pool_addfileprovides was not called, this may result in slow operation\n");
597+
POOL_DEBUG(SOLV_DEBUG_STATS, "WARNING: pool_addfileprovides was not called, this may result in slow operation\n");
599598
/* lazyly add file provides */
600599
for (i = 1; i < num; i++)
601600
{

0 commit comments

Comments
 (0)