mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
- Factorize some conditions - Remove useless `default` case and move the return at the end of the functions - Use strings.CutPrefix instead of strings.HasPrefix + strings.TrimPrefix - Use switch-case constructs instead of slices.Contains, as this reduces the complexity of the functions and allows them to be inlined, as well as helping the compiler to optimize them, as it sucks at interprocedural optimizations. |
||
---|---|---|
.. | ||
testdata | ||
sanitizer.go | ||
sanitizer_test.go | ||
srcset.go | ||
srcset_test.go | ||
strip_tags.go | ||
strip_tags_test.go | ||
truncate.go | ||
truncate_test.go |