about summary refs log tree commit diff stats
path: root/cpp/tangle
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-22 09:59:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-22 09:59:35 -0700
commita6a8cfdde7c83b29a2ed76e887887355119ec1a1 (patch)
tree1f7c1b7afe4a944eba8ac3f37d8f3a9bc0600188 /cpp/tangle
parentf7a2671901bc396ecd5578ba624c4532d6bbf4f3 (diff)
downloadmu-a6a8cfdde7c83b29a2ed76e887887355119ec1a1.tar.gz
1120
Diffstat (limited to 'cpp/tangle')
-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 ":("