about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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();
   }
 }