removing exception dep, saving blank canvas on checkRanges err
This commit is contained in:
parent
a3605addc2
commit
d88ba0ead3
3 changed files with 6 additions and 5 deletions
|
|
@ -4,8 +4,6 @@ import (
|
|||
"bufio"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
exception "github.com/blendlabs/go-exception"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -26,7 +24,7 @@ func (fu fileUtil) ReadByLines(filePath string, handler func(line string)) error
|
|||
handler(line)
|
||||
}
|
||||
} else {
|
||||
return exception.Wrap(err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
@ -46,7 +44,7 @@ func (fu fileUtil) ReadByChunks(filePath string, chunkSize int, handler func(lin
|
|||
handler(readData)
|
||||
}
|
||||
} else {
|
||||
return exception.Wrap(err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue