Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/ConnectedMode/Migration/RoslynProjectProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public IReadOnlyList<Project> Get()
return new List<Project>();
}

return wrappedWorkspace?.CurrentSolution?.Projects.ToList();
return wrappedWorkspace.CurrentSolution.Projects.ToList();
}
}
}
2 changes: 1 addition & 1 deletion src/ConnectedMode/Persistence/SolutionBindingRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BoundSonarQubeProject ILegacySolutionBindingRepository.Read(string configFilePat
return bindingJsonModel switch
{
null => null,
not null => bindingJsonModelConverter.ConvertFromModelToLegacy(bindingJsonModel, credentialsLoader.Load(bindingJsonModel.ServerUri))
_ => bindingJsonModelConverter.ConvertFromModelToLegacy(bindingJsonModel, credentialsLoader.Load(bindingJsonModel.ServerUri))
};
}

Expand Down
1 change: 0 additions & 1 deletion src/Core/FileMonitor/SingleFileMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ private void CleanUpEmptyDirectory()

private void OnFileChanged(object sender, FileSystemEventArgs args)
{
Debug.Assert(fileChangedHandlers != null, "Not expecting file system events to be monitored if there are no listeners");
if (fileChangedHandlers == null || disposedValue)
{
return;
Expand Down
1 change: 0 additions & 1 deletion src/Integration/Helpers/OutputWindowService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public OutputWindowService([Import(typeof(SVsServiceProvider))] IServiceProvider
public void Show()
{
var sonarLintOutputPane = VsShellUtils.GetOrCreateSonarLintOutputPane(serviceProvider);
Debug.Assert(sonarLintOutputPane != null, "Failed to create SonarLint pane");

if (sonarLintOutputPane == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public object[] ConvertBack(
CultureInfo culture)
{
Debug.Fail("We should not hit here");
return null;
return Array.Empty<object>();
}
}
}