зеркало из https://github.com/mozilla/mig.git
file: remove explicit assignment of the zero value to var definitions
This commit is contained in:
Родитель
77dccc6de5
Коммит
6ca741f255
|
@ -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' {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче