Enable static checks
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
parent
32e2260be2
commit
db0a4ec1c8
33 changed files with 116 additions and 96 deletions
|
@ -139,14 +139,14 @@ func TestEmptyRootList(t *testing.T) {
|
|||
}
|
||||
defer rootedDriver.Delete(ctx, filename)
|
||||
|
||||
keys, err := emptyRootDriver.List(ctx, "/")
|
||||
keys, _ := emptyRootDriver.List(ctx, "/")
|
||||
for _, path := range keys {
|
||||
if !storagedriver.PathRegexp.MatchString(path) {
|
||||
t.Fatalf("unexpected string in path: %q != %q", path, storagedriver.PathRegexp)
|
||||
}
|
||||
}
|
||||
|
||||
keys, err = slashRootDriver.List(ctx, "/")
|
||||
keys, _ = slashRootDriver.List(ctx, "/")
|
||||
for _, path := range keys {
|
||||
if !storagedriver.PathRegexp.MatchString(path) {
|
||||
t.Fatalf("unexpected string in path: %q != %q", path, storagedriver.PathRegexp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue