summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2015-10-07 18:10:12 +0200
committerSilvan Jegen <s.jegen@gmail.com>2015-10-07 18:10:12 +0200
commit942afdc5d97fe1b46a04e1ce70341b295df3ebfe (patch)
tree2050423435b73be492f17a066c9616f5be6d4b4e
parent0179cb2229270bf9a4ecf8d92ff16e84c981b129 (diff)
Reorder variable initialization
-rw-r--r--obo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/obo.go b/obo.go
index 2827f88..ee63e87 100644
--- a/obo.go
+++ b/obo.go
@@ -69,9 +69,10 @@ func Dump(oboent []*OboTermEntry, parentchildrenmap map[string][]*OboTermEntry)
}
func parseObo(oboinput bufio.Reader, obochan chan *OboTermEntry, parentchildren map[string][]*OboTermEntry) {
- lineno := 0
var entry *OboTermEntry
var termsstarted bool
+
+ lineno := 0
defer close(obochan)
for {