Skip to content

Commit

Permalink
fix-approvals
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Nov 27, 2019
1 parent 94192d6 commit 1d70cbf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 1 addition & 3 deletions tests/approvals/approvals.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ func Compare(path string, ignoredFields ...string) (map[string]interface{}, map[

var approved map[string]interface{}
approvedf, err := os.Open(path + ApprovedSuffix)
if err != nil {
approved = map[string]interface{}{}
} else {
if err == nil {
defer approvedf.Close()
if err := json.NewDecoder(approvedf).Decode(&approved); err != nil {
fmt.Println("Cannot unmarshal approved file ", path, err)
Expand Down

0 comments on commit 1d70cbf

Please sign in to comment.