Skip to content

Commit 89a7ab6

Browse files
committed
store: remove unneeded stat
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 67d569f commit 89a7ab6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/store/store.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ func InstanceDir(name string) (string, error) {
6565

6666
// LoadYAMLByFilePath loads and validates the yaml.
6767
func LoadYAMLByFilePath(filePath string) (*limayaml.LimaYAML, error) {
68-
if _, err := os.Stat(filePath); err != nil {
69-
return nil, err
70-
}
7168
yContent, err := os.ReadFile(filePath)
7269
if err != nil {
7370
return nil, err

0 commit comments

Comments
 (0)