Add comment to filterFolders function

This commit is contained in:
PiMaDaum 2023-02-05 21:30:48 +01:00
parent 7db321f130
commit 20e3a72c92

View file

@ -17,6 +17,7 @@ var celEnvOptions = []cel.EnvOption{
cel.Variable("ModifiedTimestamp", cel.TimestampType),
}
// Filters the slice folders by invoke CEL program for each folder
func filterFolders(folders *[]api.Folder, celCmd string, ctx context.Context) ([]api.Folder, error) {
if celCmd == "" {
return *folders, nil