file: remove explicit assignment of the zero value to var definitions

This commit is contained in:
Aaron Meihm 2017-08-18 10:07:48 -05:00
Родитель 77dccc6de5
Коммит 6ca741f255
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -299,7 +299,7 @@ func (s *search) hasMismatch(filter string) bool {
func parseSize(size string) (minsize, maxsize uint64, err error) { func parseSize(size string) (minsize, maxsize uint64, err error) {
var ( var (
multiplier uint64 = 1 multiplier uint64 = 1
n uint64 = 0 n uint64
) )
switch size[len(size)-1] { switch size[len(size)-1] {
case 'k': case 'k':
@ -347,8 +347,8 @@ func parseSize(size string) (minsize, maxsize uint64, err error) {
func parseMtime(mtime string) (minmtime, maxmtime time.Time, err error) { func parseMtime(mtime string) (minmtime, maxmtime time.Time, err error) {
var ( var (
isDays = false isDays = false
n uint64 = 0 n uint64
) )
suffix := mtime[len(mtime)-1] suffix := mtime[len(mtime)-1]
if suffix == 'd' { if suffix == 'd' {