Skip to content

Commit fda7e51

Browse files
committed
fix
1 parent bd92cd6 commit fda7e51

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

modules/appstate/appstate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package appstate
88
type StateStore interface {
99
Get(item StateItem) error
1010
Set(item StateItem) error
11-
Delete(item StateItem) error
1211
}
1312

1413
// StateItem provides the name for a state item. the name will be used to generate filenames, etc

modules/appstate/file.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ func (f *FileStore) Set(item StateItem) error {
4444
return ioutil.WriteFile(f.genFilePath(item), b, fs.FileMode(0644))
4545
}
4646

47-
// Delete removes the state item
48-
func (f *FileStore) Delete(item StateItem) error {
49-
return os.Remove(f.genFilePath(item))
50-
}
51-
5247
// NewFileStore returns a new file store
5348
func NewFileStore(path string) (*FileStore, error) {
5449
_ = os.Mkdir(path, fs.FileMode(0755))

routers/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ func InitGitServices() {
7474
mustInit(repository.NewContext)
7575
}
7676

77-
func syncAppPathForGit(ctx context.Context) (err error) {
77+
func syncAppPathForGit(ctx context.Context) error {
7878
runtimeState := new(appstate.RuntimeState)
79-
if err = setting.AppState.Get(runtimeState); err != nil {
79+
if err := setting.AppState.Get(runtimeState); err != nil {
8080
return err
8181
}
8282
if runtimeState.LastAppPath != setting.AppPath {

0 commit comments

Comments
 (0)