Skip to content

Commit

Permalink
Removin unnecessary checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dministro committed Feb 28, 2023
1 parent a87e941 commit a7b488d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ public override async Task<ActivityExecutionResult> ExecuteAsync(
WorkflowExecutionContext workflowContext,
ActivityContext activityContext)
{
var user = !string.IsNullOrEmpty(User.Expression)
? await _workflowScriptEvaluator.EvaluateAsync(User, workflowContext)
: null;
var user = await _workflowScriptEvaluator.EvaluateAsync(User, workflowContext);

if (user == null) return Outcomes("Error");

Expand Down

0 comments on commit a7b488d

Please sign in to comment.