about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMax Bernstein <emacs@fb.com>2019-10-22 19:36:57 -0700
committerMax Bernstein <emacs@fb.com>2019-10-22 19:36:57 -0700
commit9d622b12ceaf3a3142fa35827b6a3d3a3440eb93 (patch)
treea64874a0070c361af09457ef6227b84c09db951c
parent0a2247726abfa9965e5ae3e485eb127592ee820e (diff)
downloadmu-9d622b12ceaf3a3142fa35827b6a3d3a3440eb93.tar.gz
Simplify loop
-rw-r--r--038---literal_strings.cc5
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();
   }
 }