Skip to content

Commit

Permalink
using ternary expression (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: psomangali <[email protected]>
  • Loading branch information
priyasomangali and psomangali authored Aug 22, 2023
1 parent 912de6d commit c220e67
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Agoda.Tests.Metrics/TestCasePayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ public TestCasePayload(string metricsVersion, GitContext gitContext, IList<TestC
Branch = gitContext.BranchName;
NUnitTestCases = testCases.ToList();
IsDebuggerAttached = System.Diagnostics.Debugger.IsAttached;
var ciJobId = Environment.GetEnvironmentVariable("CI_JOB_ID");
if (!string.IsNullOrEmpty(ciJobId))
{
RunId = ciJobId;
}
else
{
RunId = Guid.NewGuid().ToString();
}
var ciJobId = Environment.GetEnvironmentVariable("CI_JOB_ID");
RunId = string.IsNullOrEmpty(ciJobId) ? Guid.NewGuid().ToString() : ciJobId;
}

public bool IsDebuggerAttached { get; set; }
Expand Down

0 comments on commit c220e67

Please sign in to comment.