Skip to content

Commit 8f77b19

Browse files
committed
Replace ioutil.ReadDir with os.ReadDir
Seeing as I was in this part of the code during this branch's work
1 parent f26f779 commit 8f77b19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/backend/local/backend.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"context"
88
"errors"
99
"fmt"
10-
"io/ioutil"
1110
"log"
1211
"os"
1312
"path/filepath"
@@ -207,7 +206,7 @@ func (b *Local) Workspaces() ([]string, tfdiags.Diagnostics) {
207206
// the listing always start with "default"
208207
envs := []string{backend.DefaultStateName}
209208

210-
entries, err := ioutil.ReadDir(b.stateWorkspaceDir())
209+
entries, err := os.ReadDir(b.stateWorkspaceDir())
211210
// no error if there's no envs configured
212211
if os.IsNotExist(err) {
213212
return envs, nil

0 commit comments

Comments
 (0)