Skip to content

Commit

Permalink
Use getter to avoid nil pointer exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Feb 15, 2024
1 parent bedc4b9 commit 1e4a191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/submitplan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ func TestMappedItemDiffsFromPlan(t *testing.T) {
if secret == nil {
t.Fatalf("Expected secret to be set, but it's not")
}
if secret.MappingQuery.GetScope() != "dogfood.default" {
t.Errorf("Expected secret query scope to be 'dogfood.default', got '%v'", secret.MappingQuery.GetScope())
if secret.GetMappingQuery().GetScope() != "dogfood.default" {
t.Errorf("Expected secret query scope to be 'dogfood.default', got '%v'", secret.GetMappingQuery().GetScope())
}
}

Expand Down

0 comments on commit 1e4a191

Please sign in to comment.