fix: controller debug message - sotw has not changed #19
Annotations
2 errors and 2 warnings
Verify goimports:
controller/controller.go#L1
Please run goimports .
diff --git a/controller/controller.go b/controller/controller.go
index ab70a30..5cbe67e 100644
--- a/controller/controller.go
+++ b/controller/controller.go
@@ -333,8 +333,8 @@ func (c *Controller) handleCacheEvent(snapshot watchable.Snapshot[string, Store]
if len(events) > 0 { // this condition is actually redundant; if the snapshot has updates, there must be events
c.propagate(events)
} else {
- c.logger.V(1).Info("state of the world has not changed")
- }
+ c.logger.V(1).Info("state of the world has not changed")
+ }
return objs
}
|
Verify goimports
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Set up Go
Restore cache failed: Dependencies file is not found in /home/runner/work/policy-machinery/policy-machinery. Supported file pattern: go.sum
|
Loading