Skip to content

Commit

Permalink
remove confusing file size errors from TOC string
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jul 9, 2020
1 parent 44356a7 commit 2663a70
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ func (t *FileTOC) String() string {
fTocStr += fmt.Sprintf("%02d: %s%s%v\n", i, l.Command(), strings.Repeat(" ", 28-len(l.Command().String())), l)
}
}
if t.SizeCommands != t.LoadSize() {
fTocStr += fmt.Sprintf("ERROR: recorded command size %d does not equal computed command size %d\n", t.SizeCommands, t.LoadSize())
} else {
fTocStr += fmt.Sprintf("NOTE: recorded command size %d, computed command size %d\n", t.SizeCommands, t.LoadSize())
}
fTocStr += fmt.Sprintf("NOTE: File size is %d\n", t.FileSize())
// if t.SizeCommands != t.LoadSize() {
// fTocStr += fmt.Sprintf("ERROR: recorded command size %d does not equal computed command size %d\n", t.SizeCommands, t.LoadSize())
// } else {
// fTocStr += fmt.Sprintf("NOTE: recorded command size %d, computed command size %d\n", t.SizeCommands, t.LoadSize())
// }
// fTocStr += fmt.Sprintf("NOTE: File size is %d\n", t.FileSize())

return fTocStr
}
Expand Down

0 comments on commit 2663a70

Please sign in to comment.