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
..
2018-02-08 16:47:43 -08:00
2018-02-08 16:47:43 -08:00
2019-02-25 14:41:26 -06:00
2019-02-25 14:20:14 -06:00
2016-12-14 21:59:16 +01:00
2018-02-08 16:47:43 -08:00
2019-07-01 13:01:41 -07:00
2019-04-01 23:42:31 -07:00
2020-02-14 11:42:29 -05:00
2019-04-05 15:30:41 +02:00
2019-04-05 15:30:41 +02:00
2020-01-09 08:37:30 -08:00
2020-03-11 10:30:08 +01:00
2016-11-01 14:08:04 -07:00
2018-01-22 17:21:10 -08:00
2018-09-06 12:19:31 -07:00
2019-11-27 20:27:24 -05:00
2020-01-07 11:05:35 +01:00
2019-03-29 15:30:00 -07:00
2018-07-20 02:12:47 +01:00
2018-07-20 02:12:47 +01:00
2018-07-20 02:12:48 +01:00
2018-07-20 02:12:48 +01:00
2016-11-01 14:08:04 -07:00
2014-10-27 20:34:49 -07:00
2018-08-24 15:56:44 -07:00
2019-07-24 17:18:07 +01:00
2015-08-24 15:09:29 +02:00
2015-08-24 15:09:29 +02:00
2018-04-19 14:26:31 -07:00
2018-09-06 12:19:31 -07:00
2018-09-06 12:19:31 -07:00
2018-09-06 12:19:31 -07:00
2018-09-06 12:19:31 -07:00
2019-11-20 10:41:08 -06:00
2019-11-20 10:41:08 -06:00
2018-11-09 08:47:22 -08:00
2018-11-09 08:47:22 -08:00
2020-01-09 08:37:30 -08:00
2020-01-09 08:37:30 -08:00
2017-06-19 16:26:18 +02:00
2017-06-19 16:26:18 +02:00
2016-02-12 17:24:42 -08:00
2016-02-12 17:24:42 -08:00
2020-01-28 16:52:50 -05:00
2018-08-24 15:56:44 -07:00
2014-10-27 20:34:49 -07:00
2015-06-13 16:39:12 -04:00
2015-06-13 16:39:12 -04:00
2018-08-30 16:44:00 -05:00
2018-08-30 16:44:00 -05:00
2014-10-27 20:34:49 -07:00
2014-10-27 20:34:49 -07:00
2020-01-09 08:37:30 -08:00
2018-09-06 12:19:31 -07:00