mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Fix linter list and fix errors discovered by new staticcheck
This commit is contained in:
@@ -13,7 +13,7 @@ func DirIsAccessible(filename string) error {
|
||||
_, err := os.Stat(filename)
|
||||
if err != nil {
|
||||
if !os.IsNotExist(err) {
|
||||
return fmt.Errorf("Something went wrong, %v", err)
|
||||
return fmt.Errorf("error checking directory '%s': %s", filename, err)
|
||||
}
|
||||
} else {
|
||||
if unix.Access(filename, unix.W_OK) != nil {
|
||||
|
||||
Reference in New Issue
Block a user