We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78dbc88 commit f807163Copy full SHA for f807163
config/load.go
@@ -26,17 +26,13 @@ import (
26
"github.com/buraksezer/olric/hasher"
27
"github.com/buraksezer/olric/serializer"
28
"github.com/pkg/errors"
29
- "golang.org/x/sys/unix"
30
)
31
32
// Load reads and loads Olric configuration.
33
func Load(filename string) (*Config, error) {
34
if _, err := os.Stat(filename); os.IsNotExist(err) {
35
return nil, fmt.Errorf("file doesn't exists: %s", filename)
36
}
37
- if err := unix.Access(filename, unix.R_OK); err != nil {
38
- return nil, fmt.Errorf("file doesn't readable: %s", filename)
39
- }
40
f, err := os.Open(filename)
41
if err != nil {
42
return nil, err
0 commit comments