diff --git a/cmd/notation/internal/policy/show.go b/cmd/notation/internal/policy/show.go index 6bfa1ee86..b8b3b6a76 100644 --- a/cmd/notation/internal/policy/show.go +++ b/cmd/notation/internal/policy/show.go @@ -31,9 +31,9 @@ import ( // Otherwise, it will show blob trust policy configuration. func Show(isOCIPolicy bool) error { var ( + doc policy policyJSON []byte err error - doc policy ) if isOCIPolicy { doc = &trustpolicy.OCIDocument{}