fix golint issues in core/iox (#488)

This commit is contained in:
Kevin Wan
2021-02-19 18:40:26 +08:00
committed by GitHub
parent 0c094cb2d7
commit 1f92bfde6a
5 changed files with 17 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
const bufSize = 32 * 1024
// CountLines returns the number of lines in file.
func CountLines(file string) (int, error) {
f, err := os.Open(file)
if err != nil {