Skip to content

Commit 2df0e4c

Browse files
committed
Use appPath returned from exec.LookPath() if ok
1 parent bb4bb51 commit 2df0e4c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

modules/setting/setting.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ func getAppPath() (string, error) {
464464
appPath = oldAppPath
465465
log.Error("Could not change AppPath from %s to %s while running in snap. Hooks for new repositories may fail after snap upgrades.", oldAppPath, newAppPath)
466466
} else {
467-
appPath = newAppPath
468467
log.Info("AppPath changed from %s to %s because we are running in snap.", oldAppPath, newAppPath)
469468
}
470469
}

0 commit comments

Comments
 (0)