Remove unnecessary comments

This commit is contained in:
2025-04-29 02:45:56 -05:00
parent b2ead348e5
commit 7dbde25bcf
2 changed files with 5 additions and 23 deletions

View File

@ -71,10 +71,6 @@ func CSRF(config CSRFConfig) Middleware {
if config.Cookie.Domain != "" {
options = append(options, csrf.Domain(config.Cookie.Domain))
}
// Only check boolean fields if they've been explicitly set
// For cookie security settings, we only set them if they're being turned off
// since the secure defaults should be used otherwise
if !config.Cookie.Secure {
options = append(options, csrf.Secure(false))
}