Skip to content

Commit ebc89dc

Browse files
committed
Lint: revive unexported-naming
Signed-off-by: apostasie <[email protected]>
1 parent 4e3f637 commit ebc89dc

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ linters:
119119
disabled: true
120120
- name: function-result-limit
121121
disabled: true
122-
- name: unexported-naming
123-
disabled: true
124122
- name: unnecessary-stmt
125123
disabled: true
126124
- name: if-return

pkg/cmd/container/run_windows.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ func setPlatformOptions(
6969
if err != nil {
7070
return nil, fmt.Errorf("failed to parse memory bytes %q: %w", options.Memory, err)
7171
}
72-
UVMMemmory := map[string]string{
72+
uvmMemmory := map[string]string{
7373
uvmMemorySizeInMB: fmt.Sprintf("%v", mem64),
7474
}
75-
opts = append(opts, oci.WithAnnotations(UVMMemmory))
75+
opts = append(opts, oci.WithAnnotations(uvmMemmory))
7676
}
7777

7878
if options.CPUs > 0.0 {
79-
UVMCPU := map[string]string{
79+
uvmCPU := map[string]string{
8080
uvmCPUCount: fmt.Sprintf("%v", options.CPUs),
8181
}
82-
opts = append(opts, oci.WithAnnotations(UVMCPU))
82+
opts = append(opts, oci.WithAnnotations(uvmCPU))
8383
}
8484
opts = append(opts, oci.WithWindowsHyperV)
8585
case "host":

pkg/inspecttypes/dockercompat/dockercompat.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,10 +820,10 @@ func getMemorySettingsFromNative(sp *specs.Spec) (*MemorySetting, error) {
820820
return res, nil
821821
}
822822

823-
func getDNSFromNative(Labels map[string]string) (*DNSSettings, error) {
823+
func getDNSFromNative(lbls map[string]string) (*DNSSettings, error) {
824824
res := &DNSSettings{}
825825

826-
if dnsSettingJSON, ok := Labels[labels.DNSSetting]; ok {
826+
if dnsSettingJSON, ok := lbls[labels.DNSSetting]; ok {
827827
if err := json.Unmarshal([]byte(dnsSettingJSON), &res); err != nil {
828828
return nil, fmt.Errorf("failed to parse DNS settings: %v", err)
829829
}
@@ -832,10 +832,10 @@ func getDNSFromNative(Labels map[string]string) (*DNSSettings, error) {
832832
return res, nil
833833
}
834834

835-
func getHostConfigLabelFromNative(Labels map[string]string) (*HostConfigLabel, error) {
835+
func getHostConfigLabelFromNative(lbls map[string]string) (*HostConfigLabel, error) {
836836
res := &HostConfigLabel{}
837837

838-
if hostConfigLabelJSON, ok := Labels[labels.HostConfigLabel]; ok {
838+
if hostConfigLabelJSON, ok := lbls[labels.HostConfigLabel]; ok {
839839
if err := json.Unmarshal([]byte(hostConfigLabelJSON), &res); err != nil {
840840
return nil, fmt.Errorf("failed to parse DNS servers: %v", err)
841841
}

0 commit comments

Comments
 (0)