Skip to content

Commit

Permalink
Handles option meta data error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ackleymi committed Sep 1, 2018
1 parent 76d8bea commit 01255f6
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 45 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion cmd/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func write(iter *options.StraddleIter) error {

// writeE writes the expiration dates table.
func writeE(iter *options.StraddleIter) error {

if iter.Err() != nil {
return iter.Err()
}
// iterate.
meta := iter.Meta()
if meta == nil {
Expand Down Expand Up @@ -175,6 +179,5 @@ func build(ss []*finance.Straddle) (tbl [][]string) {
}

func fields() []string {

return []string{utils.Bold("Last Price"), utils.Bold("Change"), utils.Bold("% Change"), utils.Bold("Volume"), utils.Bold("Open Int")}
}
4 changes: 4 additions & 0 deletions vendor/github.com/piquette/finance-go/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions vendor/github.com/piquette/finance-go/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 44 additions & 35 deletions vendor/github.com/piquette/finance-go/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/piquette/finance-go/VERSION

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01255f6

Please sign in to comment.