mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
Fix multiple statements on single line
SA1107
This commit is contained in:
parent
167fbb3daf
commit
f24c0a0510
@ -19,7 +19,7 @@ namespace Ocelot.Raft
|
|||||||
//todo - handle an error
|
//todo - handle an error
|
||||||
//hack it to just cast as at the moment we know this is the only command :P
|
//hack it to just cast as at the moment we know this is the only command :P
|
||||||
var hack = (UpdateFileConfiguration)log.CommandData;
|
var hack = (UpdateFileConfiguration)log.CommandData;
|
||||||
_setter.Set(hack.Configuration).GetAwaiter().GetResult();;
|
_setter.Set(hack.Configuration).GetAwaiter().GetResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -51,7 +51,7 @@ namespace Ocelot.Requester
|
|||||||
if (!c.Contains(k))
|
if (!c.Contains(k))
|
||||||
{
|
{
|
||||||
c.Add(k, v);
|
c.Add(k, v);
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
span.Log(LogField.CreateNew().ClientSend());
|
span.Log(LogField.CreateNew().ClientSend());
|
||||||
|
@ -25,7 +25,7 @@ namespace Ocelot.AcceptanceTests
|
|||||||
public CustomMiddlewareTests()
|
public CustomMiddlewareTests()
|
||||||
{
|
{
|
||||||
_counter = 0;
|
_counter = 0;
|
||||||
_steps = new Steps();;
|
_steps = new Steps();
|
||||||
_configurationPath = "configuration.json";
|
_configurationPath = "configuration.json";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -357,7 +357,7 @@ namespace Ocelot.AcceptanceTests
|
|||||||
}
|
}
|
||||||
else if(context.Request.Path.Value != basePath)
|
else if(context.Request.Path.Value != basePath)
|
||||||
{
|
{
|
||||||
context.Response.StatusCode = 404;;
|
context.Response.StatusCode = 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
@ -588,7 +588,8 @@ namespace Ocelot.UnitTests.Configuration
|
|||||||
AuthenticationOptions = new FileAuthenticationOptions()
|
AuthenticationOptions = new FileAuthenticationOptions()
|
||||||
{
|
{
|
||||||
AuthenticationProviderKey = "Test"
|
AuthenticationProviderKey = "Test"
|
||||||
} }
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.When(x => x.WhenIValidateTheConfiguration())
|
.When(x => x.WhenIValidateTheConfiguration())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user