diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-10-14 11:40:55 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-10-14 11:40:55 +0200 |
commit | 616ab4fac200170bc0d2ba1958e424fd309fc494 (patch) | |
tree | b39dcd6dfe36cc5c99ce7f8790631ac242b1217e /modules/gdscript | |
parent | 1fed266bf5452b30376db62495f4985f6975f2c1 (diff) |
Small fixes to redundand code, copy paste bugs
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 4 | ||||
-rw-r--r-- | modules/gdscript/language_server/lsp.hpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 21434cd150..cf326bef36 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -2232,9 +2232,7 @@ void GDScriptParser::_parse_pattern_block(BlockNode *p_block, Vector<PatternBran break; // go back a level } - if (pending_newline != -1) { - pending_newline = -1; - } + pending_newline = -1; PatternBranchNode *branch = alloc_node<PatternBranchNode>(); branch->body = alloc_node<BlockNode>(); diff --git a/modules/gdscript/language_server/lsp.hpp b/modules/gdscript/language_server/lsp.hpp index cf360b5291..a048af88bb 100644 --- a/modules/gdscript/language_server/lsp.hpp +++ b/modules/gdscript/language_server/lsp.hpp @@ -496,7 +496,7 @@ struct TextDocumentSyncOptions { dict["willSave"] = willSave; dict["openClose"] = openClose; dict["change"] = change; - dict["change"] = save.to_json(); + dict["save"] = save.to_json(); return dict; } }; |