about summary refs log tree commit diff stats
path: root/cpp/tangle/030tangle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/tangle/030tangle.cc')
-rw-r--r--cpp/tangle/030tangle.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/cpp/tangle/030tangle.cc b/cpp/tangle/030tangle.cc
index b1316b88..7f3f23c5 100644
--- a/cpp/tangle/030tangle.cc
+++ b/cpp/tangle/030tangle.cc
@@ -95,14 +95,12 @@ void process_next_hunk(istream& in, const string& directive, const string& filen
       in.seekg(old);
       break;
     }
-    else {
-      Line curr;
-      curr.line_number = line_number;
-      curr.filename = filename;
-      curr.contents = curr_line;
-      hunk.push_back(curr);
-      ++line_number;
-    }
+    Line curr;
+    curr.line_number = line_number;
+    curr.filename = filename;
+    curr.contents = curr_line;
+    hunk.push_back(curr);
+    ++line_number;
   }
 
   istringstream directive_stream(directive.substr(2));  // length of ":("