Skip to content

Commit ed9daac

Browse files
author
SlavaRa
committed
Replace 'some is Type ? some as Type : null' by 'some as Type'
1 parent 5c94fa1 commit ed9daac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

External/Plugins/ASCompletion/PluginMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public void HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
270270

271271
if (command.StartsWith("ASCompletion."))
272272
{
273-
string cmdData = (de.Data is string) ? (string)de.Data : null;
273+
string cmdData = de.Data as string;
274274

275275
// add a custom classpath
276276
if (command == "ASCompletion.ClassPath")

External/Plugins/CodeFormatter/InfoCollector/AntlrUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public static List<IToken> getPostHiddenTokens(ParserRuleReturnScope tree, Commo
240240
if (tree.Tree==null)
241241
{
242242
//I think this only happens with implied semicolons
243-
if (tree.Start is CommonToken && tree.Start!=null)
243+
if (tree.Start is CommonToken)
244244
{
245245
//I think we should always be on at least token 1.
246246
IToken currentTok=rawTokens.Get(((CommonToken)tree.Start).TokenIndex);

0 commit comments

Comments
 (0)