Update based on PR feedback.

This commit is contained in:
John Brownlee 2021-09-29 15:56:56 -07:00
parent a6b903e7f8
commit ee292e2df7
2 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,7 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"strconv"
) )
// ProcessConfiguration models the configuration for starting a FoundationDB // ProcessConfiguration models the configuration for starting a FoundationDB
@ -107,7 +108,7 @@ func (argument Argument) GenerateArgument(processNumber int, env map[string]stri
number = number * argument.Multiplier number = number * argument.Multiplier
} }
number = number + argument.Offset number = number + argument.Offset
return fmt.Sprintf("%d", number), nil return strconv.Itoa(number), nil
case EnvironmentArgumentType: case EnvironmentArgumentType:
var value string var value string
var present bool var present bool

View File

@ -21,7 +21,6 @@ package main
import ( import (
"fmt" "fmt"
"io/ioutil"
"os" "os"
"path" "path"
@ -50,7 +49,7 @@ func copyFile(logger logr.Logger, inputPath string, outputPath string, required
outputDir := path.Dir(outputPath) outputDir := path.Dir(outputPath)
tempFile, err := ioutil.TempFile(outputDir, "") tempFile, err := os.CreateTemp(outputDir, "")
if err != nil { if err != nil {
return err return err
} }