Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
tidy up formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sampointer committed Dec 3, 2019
1 parent 434455f commit b6ad4d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions divvyyaml/divvyyaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type DivvyYaml struct {
// Parse populates the structure from the given path and options
func (d *DivvyYaml) Parse(path string) error {
// create a closure containing the d.Doc. This will be passed to filepath.Walk
walkerfunc := func (path string, info os.FileInfo, err error) error {
walkerfunc := func (path string, info os.FileInfo, err error) error {
// Pass all errors back up the call chain
if err != nil {
return err
Expand All @@ -33,6 +33,7 @@ func (d *DivvyYaml) Parse(path string) error {
d.Doc += indentString(depth, key) + ":\n"
return nil
}

// A file has contents that exist under a key named after the file prefix
// unless the file name starts with an underscore, in which case no key
// is written
Expand Down Expand Up @@ -60,7 +61,7 @@ func (d *DivvyYaml) Parse(path string) error {
file.Close()

return scanner.Err()
} // end of inner function definition
} // end of inner function definition

// Store the current working directory so we can get back.
cwd, err := os.Getwd()
Expand Down

0 comments on commit b6ad4d8

Please sign in to comment.