Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/SimpleFluxDotNet.Example/Program.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using SimpleFluxDotNet.Example;
using SimpleFluxDotNet.Example.Actions;
using SimpleFluxDotNet.Example.States;
using SimpleFluxDotNet.Extensions;

return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Early return statement prevents entire application from executing and appears to be a debug artifact.

Feedback

Post a comment with the following structure to provide feedback on this finding:

@AikidoSec feedback: [FEEDBACK]

Aikido will process this feedback into learnings to give better review comments in the future.
More info


var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");

Check warning on line 10 in src/SimpleFluxDotNet.Example/Program.cs

View workflow job for this annotation

GitHub Actions / build

Unreachable code detected

Check warning on line 10 in src/SimpleFluxDotNet.Example/Program.cs

View workflow job for this annotation

GitHub Actions / build

Unreachable code detected
builder.RootComponents.Add<HeadOutlet>("head::after");

Check failure on line 11 in src/SimpleFluxDotNet.Example/Program.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 11 in src/SimpleFluxDotNet.Example/Program.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'App' could not be found (are you missing a using directive or an assembly reference?)

builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

Expand Down
Loading