Skip to content

Commit 89702f6

Browse files
Itay PazItay Paz
authored andcommitted
fix lint
1 parent 635900e commit 89702f6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/services/realtimeengine/containersrealtime/containers-realtime.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,15 @@ func filterIgnoredContainers(results []ContainerImage, ignoreMap map[string]bool
7474

7575
// RunContainersRealtimeScan performs a containers real-time scan on the given file.
7676
func (c *ContainersRealtimeService) RunContainersRealtimeScan(filePath, ignoredFilePath string) (*ContainerImageResults, error) {
77-
7877
if filePath == "" {
7978
return nil, errorconstants.NewRealtimeEngineError("file path is required").Error()
8079
}
81-
8280
if enabled, err := realtimeengine.IsFeatureFlagEnabled(c.FeatureFlagWrapper, wrappers.OssRealtimeEnabled); err != nil || !enabled {
8381
return nil, errorconstants.NewRealtimeEngineError(errorconstants.RealtimeEngineNotAvailable).Error()
8482
}
85-
8683
if err := realtimeengine.EnsureLicense(c.JwtWrapper); err != nil {
8784
return nil, errorconstants.NewRealtimeEngineError("failed to ensure license").Error()
8885
}
89-
9086
if err := realtimeengine.ValidateFilePath(filePath); err != nil {
9187
return nil, errorconstants.NewRealtimeEngineError("invalid file path").Error()
9288
}

0 commit comments

Comments
 (0)