Skip to content

Commit 619b310

Browse files
committed
refactor: 精简代码
1 parent 57bee82 commit 619b310

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/BootstrapBlazor.Server/Controllers/WaterfallController.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ public async Task<IActionResult> Index([FromServices] IOptions<WebsiteOptions> o
2424
var interval = Random.Shared.Next(1, 2000);
2525
await Task.Delay(interval);
2626

27-
#if DEBUG
2827
var fileName = Path.Combine(options.Value.WebRootPath, "images/waterfall", $"{id}.jpeg");
29-
#else
30-
var fileName = Path.Combine(options.Value.WebRootPath, "images/waterfall", $"{id}.jpeg");
31-
#endif
3228
return new PhysicalFileResult(fileName, "images/jpeg");
3329
}
3430
}

0 commit comments

Comments
 (0)