File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ package appstate
8
8
type StateStore interface {
9
9
Get (item StateItem ) error
10
10
Set (item StateItem ) error
11
- Delete (item StateItem ) error
12
11
}
13
12
14
13
// StateItem provides the name for a state item. the name will be used to generate filenames, etc
Original file line number Diff line number Diff line change @@ -44,11 +44,6 @@ func (f *FileStore) Set(item StateItem) error {
44
44
return ioutil .WriteFile (f .genFilePath (item ), b , fs .FileMode (0644 ))
45
45
}
46
46
47
- // Delete removes the state item
48
- func (f * FileStore ) Delete (item StateItem ) error {
49
- return os .Remove (f .genFilePath (item ))
50
- }
51
-
52
47
// NewFileStore returns a new file store
53
48
func NewFileStore (path string ) (* FileStore , error ) {
54
49
_ = os .Mkdir (path , fs .FileMode (0755 ))
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ func InitGitServices() {
74
74
mustInit (repository .NewContext )
75
75
}
76
76
77
- func syncAppPathForGit (ctx context.Context ) ( err error ) {
77
+ func syncAppPathForGit (ctx context.Context ) error {
78
78
runtimeState := new (appstate.RuntimeState )
79
- if err = setting .AppState .Get (runtimeState ); err != nil {
79
+ if err : = setting .AppState .Get (runtimeState ); err != nil {
80
80
return err
81
81
}
82
82
if runtimeState .LastAppPath != setting .AppPath {
You can’t perform that action at this time.
0 commit comments