Skip to content

Commit a514460

Browse files
committed
pkg/api: silence lint errors on usage of deprecated fields
Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
1 parent 1f903e9 commit a514460

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/api/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func FromOCIHooks(o *rspec.Hooks) *Hooks {
7979
return nil
8080
}
8181
return &Hooks{
82-
Prestart: FromOCIHookSlice(o.Prestart),
82+
Prestart: FromOCIHookSlice(o.Prestart), //nolint:staticcheck
8383
CreateRuntime: FromOCIHookSlice(o.CreateRuntime),
8484
CreateContainer: FromOCIHookSlice(o.CreateContainer),
8585
StartContainer: FromOCIHookSlice(o.StartContainer),

pkg/api/resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func FromOCILinuxResources(o *rspec.LinuxResources, _ map[string]string) *LinuxR
3333
Limit: Int64(m.Limit),
3434
Reservation: Int64(m.Reservation),
3535
Swap: Int64(m.Swap),
36-
Kernel: Int64(m.Kernel),
36+
Kernel: Int64(m.Kernel), //nolint:staticcheck
3737
KernelTcp: Int64(m.KernelTCP),
3838
Swappiness: UInt64(m.Swappiness),
3939
DisableOomKiller: Bool(m.DisableOOMKiller),

0 commit comments

Comments
 (0)