Skip to content

Commit 1f7aab6

Browse files
cez81lunny
authored andcommitted
Drop deprecated GOGS_WORK_DIR use (#2946)
1 parent fd09d1f commit 1f7aab6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

modules/setting/setting.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,13 +562,9 @@ func getAppPath() (string, error) {
562562
func getWorkPath(appPath string) string {
563563
workPath := ""
564564
giteaWorkPath := os.Getenv("GITEA_WORK_DIR")
565-
gogsWorkPath := os.Getenv("GOGS_WORK_DIR")
566565

567566
if len(giteaWorkPath) > 0 {
568567
workPath = giteaWorkPath
569-
} else if len(gogsWorkPath) > 0 {
570-
log.Warn(`Usage of GOGS_WORK_DIR is deprecated and will be *removed* in a future release, please consider changing to GITEA_WORK_DIR`)
571-
workPath = gogsWorkPath
572568
} else {
573569
i := strings.LastIndex(appPath, "/")
574570
if i == -1 {

0 commit comments

Comments
 (0)