Skip to content

Commit

Permalink
remove redundant const
Browse files Browse the repository at this point in the history
  • Loading branch information
filipw committed Dec 20, 2019
1 parent b7ccd91 commit fef42ac
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ internal static class CompletionItemExtensions
private const string SymbolCompletionItem = "Microsoft.CodeAnalysis.Completion.Providers.SymbolCompletionItem";
private const string SymbolKind = nameof(SymbolKind);
private const string SymbolName = nameof(SymbolName);
private const string SymbolsKey = nameof(Symbols);
private const string Symbols = nameof(Symbols);
private static readonly Type _symbolCompletionItemType;
private static MethodInfo _getSymbolsAsync;
Expand Down Expand Up @@ -51,7 +50,7 @@ public static async Task<IEnumerable<ISymbol>> GetCompletionSymbolsAsync(this Co
{
var properties = completionItem.Properties;

if (completionItem.GetType() == _symbolCompletionItemType || properties.ContainsKey(SymbolsKey))
if (completionItem.GetType() == _symbolCompletionItemType || properties.ContainsKey(Symbols))
{
var decodedSymbolsTask = _getSymbolsAsync.InvokeStatic<Task<ImmutableArray<ISymbol>>>(new object[] { completionItem, document, default(CancellationToken) });
if (decodedSymbolsTask != null)
Expand Down

0 comments on commit fef42ac

Please sign in to comment.