From 48a27c395187b696275c4d2532f1296573a4ffc1 Mon Sep 17 00:00:00 2001 From: Yieldone Date: Fri, 28 Jun 2024 08:53:48 +0800 Subject: [PATCH] style: var def with default value --- utils/exif_utils/adapter_nikon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/exif_utils/adapter_nikon.go b/utils/exif_utils/adapter_nikon.go index 985a992..0f65d72 100644 --- a/utils/exif_utils/adapter_nikon.go +++ b/utils/exif_utils/adapter_nikon.go @@ -44,7 +44,7 @@ func (p *NikonParser) FocalLengthIn35mmFormat() (string, error) { } parts := strings.Split(focalStr, " ") - var focal = "" + var focal string if len(parts) == 0 { return "", fmt.Errorf("%s can't be parserd", tagname.FocalLength) }