Skip to content

Commit dd53752

Browse files
committed
Fixes use of incorrect input path variable
Increments version to v0.1.4
1 parent 0abea4d commit dd53752

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const (
2525
)
2626

2727
var build string
28-
var semanticVersion = "v0.1.3" + build
28+
var semanticVersion = "v0.1.4" + build
2929

3030
func cliHandle(inputLocation string, inputByGroupLocation string, outputWriter io.Writer, isCSVFile bool) error {
3131
extractData := func(fileLocation string) (*parsers.Table, error) {
@@ -49,12 +49,12 @@ func cliHandle(inputLocation string, inputByGroupLocation string, outputWriter i
4949
fmt.Fprintf(os.Stderr, "Page content recieved is not text/html UTF-8. Got instead \"%s\n", contentType)
5050
}
5151
htmlBodyReader = resp.Body
52-
} else if f, err := os.Open(inputLocation); err == nil {
52+
} else if f, err := os.Open(fileLocation); err == nil {
5353
fmt.Fprintln(os.Stderr, "File detected")
5454
defer f.Close()
5555
htmlBodyReader = f
5656
} else {
57-
return nil, fmt.Errorf("provided input was neither a valid URL or a path to existing file: %v", inputLocation)
57+
return nil, fmt.Errorf("provided input was neither a valid URL or a path to existing file: %v", fileLocation)
5858
}
5959

6060
var table *parsers.Table

0 commit comments

Comments
 (0)