From c6fa45568baa1f0b1bbd57489635b6b0577cca02 Mon Sep 17 00:00:00 2001 From: mountcount <166301065+mountcount@users.noreply.github.com> Date: Tue, 14 May 2024 02:33:13 +0800 Subject: [PATCH] chore: fix function names in comment (#3464) Signed-off-by: mountcount --- connector/saml/saml.go | 2 +- storage/ent/db/ent.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/connector/saml/saml.go b/connector/saml/saml.go index 06712db6ec..fbfb1986a9 100644 --- a/connector/saml/saml.go +++ b/connector/saml/saml.go @@ -530,7 +530,7 @@ func (p *provider) validateSubject(subject *subject, inResponseTo string) error return fmt.Errorf("failed to validate subject confirmation: %v", errs) } -// validationConditions ensures that dex is the intended audience +// validateConditions ensures that dex is the intended audience // for the request, and not another service provider. // // See: https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf diff --git a/storage/ent/db/ent.go b/storage/ent/db/ent.go index da7a801611..dec4be7860 100644 --- a/storage/ent/db/ent.go +++ b/storage/ent/db/ent.go @@ -78,7 +78,7 @@ var ( columnCheck sql.ColumnCheck ) -// columnChecker checks if the column exists in the given table. +// checkColumn checks if the column exists in the given table. func checkColumn(table, column string) error { initCheck.Do(func() { columnCheck = sql.NewColumnCheck(map[string]func(string) bool{