Skip to content

Commit

Permalink
Explain why attributes are needed for cfPS() in custom modules code
Browse files Browse the repository at this point in the history
  • Loading branch information
vpodzime committed Dec 8, 2020
1 parent eb5e86e commit b379a17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libpromises/mod_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@ static PromiseResult PromiseModule_Evaluate(
PromiseResult result;
const char *const result_str = JsonObjectGetAsString(response, "result");

Attributes a = GetClassContextAttributes(ctx, pp); // TODO: WTF
/* Attributes needed for setting outcome classes etc. */
Attributes a = GetClassContextAttributes(ctx, pp);

if (result_str == NULL)
{
Expand Down

0 comments on commit b379a17

Please sign in to comment.