-
Notifications
You must be signed in to change notification settings - Fork 833
Closed
Description
fsharp/vsintegration/src/FSharp.ProjectSystem.Base/ConfigProvider.cs
Lines 262 to 265 in 12efe3b
| if (outputBasePath.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal)) | |
| outputBasePath = Path.GetDirectoryName(outputBasePath); | |
| newConfig.AddProperty("OutputPath", Path.Combine(outputBasePath, configName) + Path.DirectorySeparatorChar.ToString()); | |
A code quality tool flagged that the indentation here, suggesting that newConfig.AddProperty... is only executed when the codition is true, doesn't match the actual semantics. There's no {, } immediately following the condition, so the first statement will only be executed when the condition is true, but newConfig.AddProperty(...) will be executed no matter what.
brianrourkeboll and majochaCopilot
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done