Skip to content

Commit

Permalink
Partially revert "Add golangci.yml config enabling several other lint…
Browse files Browse the repository at this point in the history
…ers"

This reverts commit a72cf40 which
also included fixes for some of the issues raised by golangci-lint.
They will be addressed in a separate PR.

Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov committed Mar 18, 2022
1 parent 24697c4 commit f12e6d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions local_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,11 @@ func (f *fileSystemStore) Commit(consistentSnapshot bool, versions map[string]in
return err
}
if !info.IsDir() && isTarget(rel) && needsRemoval(rel) {
// TODO: log / handle error or remove empty directory
_ = os.Remove(path)
//lint:ignore SA9003 empty branch
if err := os.Remove(path); err != nil {
// TODO: log / handle error
}
// TODO: remove empty directory
}
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 TestDelegationsVerifier(t *testing.T) {
{
testName: "invalid keys",
delegations: &data.Delegations{Keys: map[string]*data.PublicKey{
"a": {Type: data.KeySchemeEd25519},
"a": &data.PublicKey{Type: data.KeySchemeEd25519},
}},
initErr: ErrWrongID{},
},
Expand Down

0 comments on commit f12e6d1

Please sign in to comment.