diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 09:59:35 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 09:59:35 -0700 |
commit | a6a8cfdde7c83b29a2ed76e887887355119ec1a1 (patch) | |
tree | 1f7c1b7afe4a944eba8ac3f37d8f3a9bc0600188 /cpp | |
parent | f7a2671901bc396ecd5578ba624c4532d6bbf4f3 (diff) | |
download | mu-a6a8cfdde7c83b29a2ed76e887887355119ec1a1.tar.gz |
1120
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/tangle/030tangle.cc | 14 |
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 ":(" |