From d77dc7dfa47451f52c62f0551c55bd91a7b4a1e3 Mon Sep 17 00:00:00 2001 From: Juanadelacuesta <8647634+Juanadelacuesta@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:46:51 +0100 Subject: [PATCH] style: format --- drivers/rawexec/driver.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/rawexec/driver.go b/drivers/rawexec/driver.go index df611f084..23b5ab977 100644 --- a/drivers/rawexec/driver.go +++ b/drivers/rawexec/driver.go @@ -18,8 +18,8 @@ import ( "github.com/hashicorp/nomad/client/lib/cpustats" "github.com/hashicorp/nomad/drivers/shared/eventer" "github.com/hashicorp/nomad/drivers/shared/executor" - "github.com/hashicorp/nomad/helper/pluginutils/hclutils" "github.com/hashicorp/nomad/drivers/shared/validators" + "github.com/hashicorp/nomad/helper/pluginutils/hclutils" "github.com/hashicorp/nomad/helper/pluginutils/loader" "github.com/hashicorp/nomad/plugins/base" "github.com/hashicorp/nomad/plugins/drivers" @@ -355,7 +355,6 @@ func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drive return nil, nil, fmt.Errorf("failed to decode driver config: %v", err) } - if driverConfig.OOMScoreAdj < 0 { return nil, nil, fmt.Errorf("oom_score_adj must not be negative") }