Skip to content

Commit e86fce1

Browse files
committed
linter
Signed-off-by: Pavel Boldyrev <[email protected]>
1 parent 67a5481 commit e86fce1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

fwprovider/cluster/sdn/zone/datasource_generic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func (d *genericZoneDataSource) Read(ctx context.Context, req datasource.ReadReq
131131
"SDN Zone Not Found",
132132
fmt.Sprintf("SDN zone with ID '%s' was not found", state.getID()),
133133
)
134+
134135
return
135136
}
136137

@@ -153,6 +154,7 @@ func (d *genericZoneDataSource) Read(ctx context.Context, req datasource.ReadReq
153154
zone.ID,
154155
),
155156
)
157+
156158
return
157159
}
158160

fwprovider/cluster/sdn/zone/datasource_zones.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,16 @@ func (d *zonesDataSource) Read(ctx context.Context, req datasource.ReadRequest,
154154
"Unable to Read SDN Zones",
155155
err.Error(),
156156
)
157+
157158
return
158159
}
159160

160161
filteredZones := zonesList
162+
161163
if !data.Type.IsNull() && !data.Type.IsUnknown() {
162164
filterType := data.Type.ValueString()
163165
filteredZones = make([]zones.ZoneData, 0)
166+
164167
for _, zone := range zonesList {
165168
if zone.Type != nil && *zone.Type == filterType {
166169
filteredZones = append(filteredZones, zone)

0 commit comments

Comments
 (0)