Skip to content

Commit

Permalink
Refactoring if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkya599 committed Nov 8, 2019
1 parent 2a08de4 commit d2b1965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tasks/Common/docker-common-v2/dockercommandutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function getCreatorEmail(): string {
const schedule = "schedule";
const buildReason = tl.getVariable("Build.Reason");
let userEmail: string = "";
if (isBuild && (!buildReason || (buildReason && tl.getVariable("Build.Reason").toLowerCase() !== schedule))) {
if (isBuild && (!buildReason || buildReason.toLowerCase() !== schedule)) {
userEmail = tl.getVariable("Build.RequestedForEmail");
}
else {
Expand Down

0 comments on commit d2b1965

Please sign in to comment.