summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-10-15 09:54:58 +0200
committerGitHub <noreply@github.com>2019-10-15 09:54:58 +0200
commit44293db4462f551617147b85e2ede66acf741c55 (patch)
treea759d0146077ef7e6d390884ae18578ad8411e73 /modules/gdscript/gdscript_parser.cpp
parent48d3458f74ee3a5c0596c905b72b52af612cde87 (diff)
parent616ab4fac200170bc0d2ba1958e424fd309fc494 (diff)
downloadredot-engine-44293db4462f551617147b85e2ede66acf741c55.tar.gz
Merge pull request #32820 from qarmin/small_fixes_static_analyzer
Small fixes to redundand code, copy paste bugs
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp4
1 files changed, 1 insertions, 3 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>();