File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ type File struct {
7373
7474type Scroll struct {
7575 File
76- filePath string
76+ scrollDir string
7777}
7878
7979type 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 }
You can’t perform that action at this time.
0 commit comments