Skip to content

Commit

Permalink
Replace ternary with safe traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Jan 8, 2019
1 parent dd86cfa commit 7a6150d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-codepipeline/lib/stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class Stage extends cdk.Construct implements cpapi.IStage, cpapi.IInterna
configuration: action.configuration,
outputArtifacts: action._outputArtifacts.map(a => ({ name: a.name })),
runOrder: action.runOrder,
roleArn: action.role ? action.role.roleArn : undefined
roleArn: action.role && action.role.roleArn,
};
}

Expand Down

0 comments on commit 7a6150d

Please sign in to comment.