summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-26 21:16:51 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-08-26 21:16:51 +0900
commitcc36b5d4aced7c8df0c1933ef3482736de068cfc (patch)
tree08e9cf2b4a548c98ead3744976bd88bc5a0e258e
parent72cb9bc55f5f96ad6d04129cd997e53c5b0c3a83 (diff)
Removed a never-true condition
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index ba10c551998..9978fb15d11 100644
--- a/parse.y
+++ b/parse.y
@@ -8556,7 +8556,7 @@ parse_percent(struct parser_params *p, const int space_seen, const enum lex_stat
return 0;
}
}
- if (c == -1 || term == -1) {
+ if (term == -1) {
compile_error(p, "unterminated quoted string meets end of file");
return 0;
}