Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos in cel.go #343

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/constraints/cel.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func NewCelEnvironment() *CelEnvironment {
decls.NewVar(PropertiesKey, decls.NewListType(decls.NewMapType(decls.String, decls.Any)))),
cel.Lib(semverLib{}),
)
// If an error occurs here, it means the CEL enviroment is unable to load
// configuration for custom libraries propertly. Hence, the CEL enviroment is
// If an error occurs here, it means the CEL environment is unable to load
// configuration for custom libraries properly. Hence, the CEL environment is
// unusable. Panic here will cause the program to fail immediately to prevent
// cascading failures later on when this CEL env is in use.
if err != nil {
Expand All @@ -41,7 +41,7 @@ func NewCelEnvironment() *CelEnvironment {
}
}

// CelEnvironment is a struct that encapsulates CEL custom program enviroment
// CelEnvironment is a struct that encapsulates CEL custom program environment
type CelEnvironment struct {
env *cel.Env
}
Expand Down
Loading