packer-cn/fix
Wilken Rivera b9f1b3c8d4
Fix gosimple S1005 linting issue (#8870)
Results before change
```
⇶  golangci-lint run ./... --disable-all --enable=gosimple | grep 1005
fix/fixer_comm_config.go:48:4: S1005: should write `sshHostPortMinRaw := builders["ssh_host_port_min"]` instead of `sshHostPortMinRaw, _ := builders["ssh_host_port_min"]` (gosimple)
fix/fixer_comm_config.go:64:4: S1005: should write `sshHostPortMaxRaw := builders["ssh_host_port_max"]` instead of `sshHostPortMaxRaw, _ := builders["ssh_host_port_max"]` (gosimple)
fix/fixer_comm_config.go:81:4: S1005: should write `sshSkipNatMappingRaw := builders["ssh_skip_nat_mapping"]` instead of `sshSkipNatMappingRaw, _ := builders["ssh_skip_nat_mapping"]` (gosimple)
packer/artifact_mock.go:47:2: S1005: should write `value := a.StateValues[name]` instead of `value, _ := a.StateValues[name]` (gosimple)
packer/artifact_test.go:31:2: S1005: should write `value := a.state[name]` instead of `value, _ := a.state[name]` (gosimple)
```

Results after change
```
```
2020-03-11 10:30:08 +01:00
..
fixer.go
fixer_amazon_enhanced_networking.go
fixer_amazon_enhanced_networking_test.go
fixer_amazon_private_ip.go
fixer_amazon_private_ip_test.go
fixer_amazon_shutdown_behavior.go
fixer_amazon_shutdown_behavior_test.go
fixer_amazon_spot_price_product.go
fixer_amazon_temporary_security_group_cidrs.go
fixer_amazon_temporary_security_group_cidrs_test.go
fixer_clean_image_name.go
fixer_clean_image_name_test.go
fixer_comm_config.go
fixer_comm_config_test.go
fixer_createtime.go
fixer_createtime_test.go
fixer_docker_email.go
fixer_galaxy_command.go
fixer_galaxy_command_test.go
fixer_hyperv_cpu_and_ram_naming.go
fixer_hyperv_deprecations.go
fixer_hyperv_deprecations_test.go
fixer_hyperv_vmxc_typo.go
fixer_hyperv_vmxc_typo_test.go
fixer_iso_md5.go
fixer_iso_md5_test.go
fixer_parallels_deprecations.go
fixer_parallels_deprecations_test.go
fixer_parallels_headless.go
fixer_parallels_headless_test.go
fixer_powershell_escapes.go
fixer_pp_manifest_filename.go
fixer_pp_manifest_filename_test.go
fixer_pp_vagrant_override.go
fixer_pp_vagrant_override_test.go
fixer_qemu_disk_size.go
fixer_qemu_disk_size_test.go
fixer_scaleway_access_key.go
fixer_scaleway_access_key_test.go
fixer_ssh_timeout.go
fixer_ssh_timeout_test.go
fixer_sshdisableagent.go
fixer_sshdisableagent_test.go
fixer_sshkeypath.go
fixer_sshkeypath_test.go
fixer_test.go
fixer_virtualbox_gaattach.go
fixer_virtualbox_gaattach_test.go
fixer_virtualbox_rename.go
fixer_virtualbox_rename_test.go
fixer_vmware_compaction.go
fixer_vmware_compaction_test.go
fixer_vmware_rename.go
fixer_vmware_rename_test.go
helpers.go