summaryrefslogtreecommitdiff
path: root/config/policy.go
diff options
context:
space:
mode:
authorTyler Cipriani <tcipriani@wikimedia.org>2018-03-22 15:05:19 -0600
committerTyler Cipriani <tcipriani@wikimedia.org>2018-03-22 15:05:33 -0600
commit0595606a314bd983df1ba5393831825a65a34ed5 (patch)
treef92db6972c5a4ef33bfa601cf767c9774de93e1c /config/policy.go
parentcffb77e9dbb14db23ed11c24c68579bd75891f9d (diff)
downloadblubber-0595606a314bd983df1ba5393831825a65a34ed5.tar.gz
No need to export NewValidator
Summary: It occurred to me while looking at code in another patch that there is no need to have this function be public. Test Plan: `go test ./...` Reviewers: dduvall, #release-engineering-team Reviewed By: dduvall, #release-engineering-team Tags: #release-engineering-team Differential Revision: https://phabricator.wikimedia.org/D1012
Diffstat (limited to 'config/policy.go')
-rw-r--r--config/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/policy.go b/config/policy.go
index 25fe02a..f143f1a 100644
--- a/config/policy.go
+++ b/config/policy.go
@@ -20,7 +20,7 @@ type Policy struct {
// Validate checks the given config against all policy enforcements.
//
func (pol Policy) Validate(config Config) error {
- validate := NewValidator()
+ validate := newValidator()
for _, enforcement := range pol.Enforcements {
cfg, err := ResolveYAMLPath(enforcement.Path, config)