Skip to content

Commit c61827a

Browse files
committed
libpromises/attributes: Fix check for error logging condition
Reverse condition check for error logging, so that it is checked for truesyness.
1 parent 6dabbab commit c61827a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpromises/attributes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ FileSelect GetSelectConstraints(const EvalContext *ctx, const Promise *pp)
626626
// get constraint file_result
627627
if ((s.result = PromiseGetConstraintAsRval(pp, "file_result", RVAL_TYPE_SCALAR)) == NULL)
628628
{
629-
if (!entries)
629+
if (entries)
630630
{
631631
Log(LOG_LEVEL_ERR, "file_select body missing its a file_result return value");
632632
}

0 commit comments

Comments
 (0)