Skip to content

Commit 538d0cd

Browse files
committed
fix: lint errors
1 parent 2c265ad commit 538d0cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scrapers/exec/exec_backstage_integration_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import (
44
"encoding/json"
55
"fmt"
66

7-
"github.com/flanksource/config-db/api"
87
ginkgo "github.com/onsi/ginkgo/v2"
98
. "github.com/onsi/gomega"
9+
10+
"github.com/flanksource/config-db/api"
1011
)
1112

1213
var _ = ginkgo.Describe("Exec Scraper - Backstage Catalog Integration", ginkgo.Ordered, func() {
@@ -100,7 +101,7 @@ var _ = ginkgo.Describe("Exec Scraper - Backstage Catalog Integration", ginkgo.O
100101

101102
configStr := result.Config.(string)
102103
var config map[string]any
103-
json.Unmarshal([]byte(configStr), &config)
104+
Expect(json.Unmarshal([]byte(configStr), &config)).To(BeNil())
104105

105106
if config["type"] == "Backstage::Component" {
106107
spec := config["spec"].(map[string]any)
@@ -137,7 +138,7 @@ var _ = ginkgo.Describe("Exec Scraper - Backstage Catalog Integration", ginkgo.O
137138

138139
configStr := result.Config.(string)
139140
var config map[string]any
140-
json.Unmarshal([]byte(configStr), &config)
141+
Expect(json.Unmarshal([]byte(configStr), &config)).To(BeNil())
141142

142143
if config["type"] == "Backstage::Component" {
143144
spec := config["spec"].(map[string]any)
@@ -176,7 +177,7 @@ var _ = ginkgo.Describe("Exec Scraper - Backstage Catalog Integration", ginkgo.O
176177

177178
configStr := result.Config.(string)
178179
var config map[string]any
179-
json.Unmarshal([]byte(configStr), &config)
180+
Expect(json.Unmarshal([]byte(configStr), &config)).To(BeNil())
180181

181182
if tags, hasTags := config["tags"].([]any); hasTags && len(tags) > 0 {
182183
entityWithTags = config

0 commit comments

Comments
 (0)