Skip to content

Commit

Permalink
chore(pkg/driver): fixed small linting issue.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Nov 7, 2023
1 parent 9ec20f3 commit 2352044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/driver/kernel/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func FetchInfo(enforcedKR, enforcedKV string) (kernelrelease.KernelRelease, erro
kr = enforcedKR
kv = enforcedKV
}
kRel := kernelrelease.FromString(kr)
kRel.KernelVersion = formatVersion(kv)
kRel.Architecture = kernelrelease.Architecture(runtime.GOARCH)
return kRel, nil
kernelRel := kernelrelease.FromString(kr)
kernelRel.KernelVersion = formatVersion(kv)
kernelRel.Architecture = kernelrelease.Architecture(runtime.GOARCH)
return kernelRel, nil
}

// formatVersion takes a kernelversion string (as taken from `uname -v`
Expand Down

0 comments on commit 2352044

Please sign in to comment.