Skip to content

Commit

Permalink
fix govet warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Sep 20, 2016
1 parent 641becc commit 8fda642
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions cmd/delete_cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var _ = Describe("DeleteCmd", func() {
},
OpsFlags: bicmd.OpsFlags{
OpsFiles: []bicmd.OpsFileArg{
{Ops: patch.Ops{patch.ErrOp{}}},
{Ops: patch.Ops([]patch.Op{patch.ErrOp{}})},
},
},
})
Expand All @@ -93,7 +93,7 @@ var _ = Describe("DeleteCmd", func() {
},
OpsFlags: bicmd.OpsFlags{
OpsFiles: []bicmd.OpsFileArg{
{Ops: patch.Ops{patch.ErrOp{}}},
{Ops: patch.Ops([]patch.Op{patch.ErrOp{}})},
},
},
})
Expand Down
8 changes: 5 additions & 3 deletions cmd/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ var _ = Describe("DeployCmd", func() {
}

opts.OpsFiles = []OpsFileArg{
{Ops: patch.Ops{patch.ReplaceOp{
Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
}},
{
Ops: patch.Ops([]patch.Op{
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
}),
},
}

err := act()
Expand Down
8 changes: 4 additions & 4 deletions cmd/ops_flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ var _ = Describe("OpsFlags", func() {
flags := OpsFlags{
OpsFiles: []OpsFileArg{
{
Ops: patch.Ops{
Ops: patch.Ops([]patch.Op{
patch.RemoveOp{Path: patch.MustNewPointerFromString("/a")},
patch.RemoveOp{Path: patch.MustNewPointerFromString("/b")},
},
}),
},
{
Ops: patch.Ops{
Ops: patch.Ops([]patch.Op{
patch.RemoveOp{Path: patch.MustNewPointerFromString("/x")},
},
}),
},
},
}
Expand Down
8 changes: 5 additions & 3 deletions cmd/update_cloud_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ var _ = Describe("UpdateCloudConfigCmd", func() {
}

opts.OpsFiles = []OpsFileArg{
{Ops: patch.Ops{patch.ReplaceOp{
Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
}},
{
Ops: patch.Ops([]patch.Op{
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
}),
},
}

err := act()
Expand Down
8 changes: 5 additions & 3 deletions cmd/update_runtime_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ var _ = Describe("UpdateRuntimeConfigCmd", func() {
}

opts.OpsFiles = []OpsFileArg{
{Ops: patch.Ops{patch.ReplaceOp{
Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
}},
{
Ops: patch.Ops([]patch.Op{
patch.ReplaceOp{Path: patch.MustNewPointerFromString("/xyz"), Value: "val"},
}),
},
}

err := act()
Expand Down

0 comments on commit 8fda642

Please sign in to comment.