Skip to content

Commit 7cc3a79

Browse files
Apply suggestion from @gemini-code-assist[bot]
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 7861724 commit 7cc3a79

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

model/ccusage_service.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ func lookPath(name string) (string, error) {
254254
filepath.Join(homeDir, ".local", "share", "fnm", "node-versions", "*", "installation", "bin", name),
255255
filepath.Join(homeDir, ".fnm", "node-versions", "*", "installation", "bin", name),
256256
// Homebrew on macOS (Intel)
257-
"/usr/local/bin/" + name,
257+
filepath.Join("/usr/local/bin", name),
258258
// Homebrew on macOS (Apple Silicon)
259-
"/opt/homebrew/bin/" + name,
259+
filepath.Join("/opt/homebrew/bin", name),
260260
// Common system paths
261-
"/usr/bin/" + name,
262-
"/bin/" + name,
261+
filepath.Join("/usr/bin", name),
262+
filepath.Join("/bin", name),
263263
}
264264

265265
// Add Node.js versions from nvm if NVM_DIR is set

0 commit comments

Comments
 (0)