Closed eikenb closed 9 years ago
Avoid the possibility of a division by 0 error by checking length and returning empty value when length is 0. Allows calling code to manage situation without adding complications.
Oh, missed this PR. Is it alright if I close this in lieu of #22 (since it logs & exits instead of silently returning)?
Yeah. I missed #22. log.Fatal() is fine with me. Thanks.
Avoid the possibility of a division by 0 error by checking length and returning empty value when length is 0. Allows calling code to manage situation without adding complications.