File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
"io/fs"
9
9
"io/ioutil"
10
10
"os"
11
- "path"
11
+ "path/filepath "
12
12
13
13
"code.gitea.io/gitea/modules/json"
14
14
)
@@ -19,7 +19,7 @@ type FileStore struct {
19
19
}
20
20
21
21
func (f * FileStore ) genFilePath (item StateItem ) string {
22
- return path .Join (f .path , item .Name ())
22
+ return filepath .Join (f .path , item .Name ())
23
23
}
24
24
25
25
// Get reads the state item
Original file line number Diff line number Diff line change 5
5
package setting
6
6
7
7
import (
8
- "path"
8
+ "path/filepath "
9
9
10
10
"code.gitea.io/gitea/modules/appstate"
11
11
"code.gitea.io/gitea/modules/log"
@@ -16,7 +16,7 @@ var AppState appstate.StateStore
16
16
17
17
func newAppState () {
18
18
var err error
19
- appStatePath := path .Join (AppDataPath , "appstate" )
19
+ appStatePath := filepath .Join (AppDataPath , "appstate" )
20
20
AppState , err = appstate .NewFileStore (appStatePath )
21
21
if err != nil {
22
22
log .Fatal ("failed to init AppState, err = %v" , err )
You can’t perform that action at this time.
0 commit comments