🚨 A bunch of small improvements from linter

This commit is contained in:
Dan Jones 2025-03-19 18:05:16 -05:00
commit 8f02956ecd
10 changed files with 51 additions and 47 deletions

View file

@ -18,7 +18,7 @@ func WithOriginal(o string) Option {
}
// WithOriginal sets the original filename as a slug.
// This should not be used with the Slug Generator (as it would be redundant)
// This should not be used with the Slug Generator (as it would be redundant).
func WithOriginalSlug(o string) Option {
return func(c *Config) {
c.original = slug.Make(o)
@ -26,7 +26,7 @@ func WithOriginalSlug(o string) Option {
}
// WithOriginal sets the original filename as a slug, taking the language into account.
// This should not be used with the Slug Generator (as it would be redundant)
// This should not be used with the Slug Generator (as it would be redundant).
func WithOriginalSlugLang(o, lang string) Option {
return func(c *Config) {
c.original = slug.MakeLang(o, lang)
@ -47,7 +47,7 @@ func WithSuffix(s string) Option {
}
}
// WithoutExtension sets no extension for the generated filename. By default, it will be txt
// WithoutExtension sets no extension for the generated filename. By default, it will be txt.
func WithoutExtension() Option {
return func(c *Config) {
c.extension = ""