Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions local_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,9 @@ func (f *fileSystemStore) Commit(consistentSnapshot bool, versions map[string]in
return err
}
if !info.IsDir() && isTarget(rel) && needsRemoval(rel) {
//lint:ignore SA9003 empty branch
if err := os.Remove(path); err != nil {
// TODO: log / handle error
return err
Comment thread
rdimitrov marked this conversation as resolved.
}
// TODO: remove empty directory
Comment thread
rdimitrov marked this conversation as resolved.
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion verify/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestDelegationsDB(t *testing.T) {
{
testName: "invalid keys",
delegations: &data.Delegations{Keys: map[string]*data.PublicKey{
"a": &data.PublicKey{Type: data.KeySchemeEd25519},
"a": {Type: data.KeySchemeEd25519},
}},
initErr: ErrWrongID{},
},
Expand Down