Skip to content

Commit

Permalink
style: var def with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
sincerefly committed Jun 28, 2024
1 parent 1abaaff commit 48a27c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/exif_utils/adapter_nikon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 48a27c3

Please sign in to comment.