Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Aug 19, 2024
1 parent 4c26cb6 commit 73a74d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"os"
"path"
"path/filepath"
path_filepath "path/filepath"
"runtime"
"strings"
"sync"
Expand Down Expand Up @@ -704,14 +703,14 @@ func moveDashboardFiles(extractedFilePath string, dir string) (string, error) {
}

// Move binary from /release/<os>/web/dashboard(.exe) to /dashboard(.exe).
err = os.Rename(extractedFilePath, filepath.Join(dir, path_filepath.Base(extractedFilePath)))
err = os.Rename(extractedFilePath, filepath.Join(dir, filepath.Base(extractedFilePath)))
if err != nil {
err = fmt.Errorf("error moving %s binary to path: %w", filepath.Base(extractedFilePath), err)
return "", err
}

// Change the extracted binary file path to reflect the move above.
extractedFilePath = filepath.Join(dir, path_filepath.Base(extractedFilePath))
extractedFilePath = filepath.Join(dir, filepath.Base(extractedFilePath))

// Remove the now-empty 'release' directory.
err = os.RemoveAll(filepath.Join(dir, "release"))
Expand Down

0 comments on commit 73a74d4

Please sign in to comment.