Skip to content

Commit ada5b07

Browse files
authored
Merge pull request #1959 from aws/asmarp/fix-semgrep-issue
chore: fix semgrep complaints
2 parents 6986f04 + c3f5f3f commit ada5b07

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Processes/TestToolProcess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public static TestToolProcess Startup(RunCommandSettings settings, CancellationT
6060

6161
var app = builder.Build();
6262

63-
app.UseDeveloperExceptionPage();
64-
6563
if (app.Environment.IsProduction())
6664
{
6765
app.UseStaticFiles(new StaticFileOptions
@@ -71,8 +69,10 @@ public static TestToolProcess Startup(RunCommandSettings settings, CancellationT
7169
}
7270
else
7371
{
72+
app.UseDeveloperExceptionPage();
7473
app.UseStaticFiles();
7574
}
75+
7676
app.UseAntiforgery();
7777

7878
app.MapRazorComponents<App>()

Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/SampleRequests/SampleRequestManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public string GetRequest(string name)
9595
if(name.StartsWith(SavedRequestDirectory + "@"))
9696
{
9797
name = name.Substring(name.IndexOf("@") + 1);
98-
var path = Path.Combine(GetSavedRequestDirectory(), name);
98+
var savedRequestDirectory = GetSavedRequestDirectory();
99+
var path = Path.Combine(savedRequestDirectory, name);
99100
return File.ReadAllText(path);
100101
}
101102
return GetEmbeddedResource(name);

0 commit comments

Comments
 (0)