diff options
author | Max Bernstein <emacs@fb.com> | 2019-10-22 19:36:57 -0700 |
---|---|---|
committer | Max Bernstein <emacs@fb.com> | 2019-10-22 19:36:57 -0700 |
commit | 9d622b12ceaf3a3142fa35827b6a3d3a3440eb93 (patch) | |
tree | a64874a0070c361af09457ef6227b84c09db951c | |
parent | 0a2247726abfa9965e5ae3e485eb127592ee820e (diff) | |
download | mu-9d622b12ceaf3a3142fa35827b6a3d3a3440eb93.tar.gz |
Simplify loop
-rw-r--r-- | 038---literal_strings.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/038---literal_strings.cc b/038---literal_strings.cc index 48d46108..ba609f6b 100644 --- a/038---literal_strings.cc +++ b/038---literal_strings.cc @@ -189,9 +189,8 @@ void parse_instruction_character_by_character(const string& line_data, vector<li } void skip_whitespace(istream& in) { - while (true) { - if (has_data(in) && isspace(in.peek())) in.get(); - else break; + while (has_data(in) && isspace(in.peek())) { + in.get(); } } |