Skip to content

Commit 4a1ff35

Browse files
committed
fix lint error
1 parent 1e3e442 commit 4a1ff35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

loginitem_darwin.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func validateAndEscapePathForAppleScript(path string) string {
3636

3737
// isLoginItem checks if the app is set to start at login.
3838
func isLoginItem(ctx context.Context) bool {
39-
appPath, err := getAppPath()
39+
appPath, err := appPath()
4040
if err != nil {
4141
log.Printf("Failed to get app path: %v", err)
4242
return false
@@ -67,7 +67,7 @@ func isLoginItem(ctx context.Context) bool {
6767

6868
// setLoginItem adds or removes the app from login items.
6969
func setLoginItem(ctx context.Context, enable bool) error {
70-
appPath, err := getAppPath()
70+
appPath, err := appPath()
7171
if err != nil {
7272
return fmt.Errorf("get app path: %w", err)
7373
}
@@ -131,8 +131,8 @@ func isRunningFromAppBundle() bool {
131131
return strings.Contains(execPath, ".app/Contents/MacOS/")
132132
}
133133

134-
// getAppPath returns the path to the application bundle.
135-
func getAppPath() (string, error) {
134+
// appPath returns the path to the application bundle.
135+
func appPath() (string, error) {
136136
// Get the executable path
137137
execPath, err := os.Executable()
138138
if err != nil {

0 commit comments

Comments
 (0)