Fix multiple statements on single line

SA1107
This commit is contained in:
Philip Wood 2018-03-03 13:29:05 +00:00
parent 167fbb3daf
commit f24c0a0510
4 changed files with 7 additions and 6 deletions

View File

@ -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();
} }
} }
} }

View File

@ -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());

View File

@ -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;

View File

@ -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())