Skip to content

Commit b0b2267

Browse files
committed
fix: validate
1 parent 78cb085 commit b0b2267

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/core/domain/scroll.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ type File struct {
7373

7474
type Scroll struct {
7575
File
76-
filePath string
76+
scrollDir string
7777
}
7878

7979
type Procedure struct {
@@ -112,7 +112,7 @@ func NewScroll(scrollDir string) (*Scroll, error) {
112112
return nil, fmt.Errorf("failed to read scroll.yaml - %w", err)
113113
}
114114
scroll := Scroll{
115-
filePath: filePath,
115+
scrollDir: scrollDir,
116116
}
117117
if _, err = scroll.ParseFile(file); err != nil {
118118
return nil, err
@@ -177,8 +177,8 @@ func (sc *Scroll) Validate(strict bool) error {
177177
ids[*p.Id] = true
178178
}
179179
}
180-
//scan for files in sc.filePath
181-
entries, err := os.ReadDir(sc.filePath)
180+
//scan for files in sc.scrollDir
181+
entries, err := os.ReadDir(sc.scrollDir)
182182
if err != nil {
183183
return fmt.Errorf("failed to read scroll directory - %w", err)
184184
}

0 commit comments

Comments
 (0)