From 52cd7e21cb141d1355b913e4fe8dc191e2aa0946 Mon Sep 17 00:00:00 2001 From: AlexSSD7 Date: Sat, 2 Sep 2023 12:09:26 +0100 Subject: [PATCH] More linting fixes --- cmd/runvm/runvm.go | 4 ++-- cmd/utils.go | 2 +- osspecifics/oschecks.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/runvm/runvm.go b/cmd/runvm/runvm.go index 4ca5e41..fa90107 100644 --- a/cmd/runvm/runvm.go +++ b/cmd/runvm/runvm.go @@ -14,9 +14,9 @@ import ( "github.com/AlexSSD7/linsk/vm" ) -type RunVMFunc func(context.Context, *vm.VM, *vm.FileManager, *share.NetTapRuntimeContext) int +type Func func(context.Context, *vm.VM, *vm.FileManager, *share.NetTapRuntimeContext) int -func RunVM(vi *vm.VM, initFileManager bool, tapRuntimeCtx *share.NetTapRuntimeContext, fn RunVMFunc) int { +func RunVM(vi *vm.VM, initFileManager bool, tapRuntimeCtx *share.NetTapRuntimeContext, fn Func) int { runErrCh := make(chan error, 1) var wg sync.WaitGroup diff --git a/cmd/utils.go b/cmd/utils.go index 7ebfcfe..5492e1d 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -30,7 +30,7 @@ func createStoreOrExit() *storage.Storage { return store } -func runVM(passthroughArg string, fn runvm.RunVMFunc, forwardPortsRules []vm.PortForwardingRule, unrestrictedNetworking bool, withNetTap bool) int { +func runVM(passthroughArg string, fn runvm.Func, forwardPortsRules []vm.PortForwardingRule, unrestrictedNetworking bool, withNetTap bool) int { store := createStoreOrExit() vmImagePath, err := store.CheckVMImageExists() diff --git a/osspecifics/oschecks.go b/osspecifics/oschecks.go index 5d9cb8c..c463d43 100644 --- a/osspecifics/oschecks.go +++ b/osspecifics/oschecks.go @@ -5,7 +5,7 @@ import "runtime" // For some reason, `runtime` package does not provide this while // "goconst" linter complains about us not using constants in // expressions like `runtime.GOOS == "windows"`. And it is -// not wrong, accidentally mispelling these OS IDs is a +// not wrong, accidentally misspelling these OS IDs is a // matter of time. func IsWindows() bool {