miniflux/internal
jvoisin 1f5c8ce353 Don't mix up capacity and length
- `make([]a, b)` create a slice of `b` elements `a`
- `make([]a, b, c)` create a slice of `0` elements `a`, but reserve space for `c` of them

When using `append` on the former, it will result on a slice with `b` leading
elements, which is unlikely to be what we want. This commit replaces the two
instances where this happens with the latter construct.
2024-02-28 19:57:30 -08:00
..
api Add feed option to disable HTTP/2 to avoid fingerprinting 2024-02-24 22:30:26 -08:00
cli Use modern for loops 2024-02-28 19:55:28 -08:00
config Remove a superfluous condition 2024-02-28 19:47:30 -08:00
crypto Remove github.com/google/uuid 2024-02-26 18:31:12 -08:00
database Add feed option to disable HTTP/2 to avoid fingerprinting 2024-02-24 22:30:26 -08:00
fever Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
googlereader Don't mix up capacity and length 2024-02-28 19:57:30 -08:00
http Fix inaccessible metrics endpoint when listening on Unix socket 2023-12-06 19:52:33 -08:00
integration Use %q instead of "%s" 2024-02-28 19:47:30 -08:00
locale Use a switch-case construct in internal/locale/plural.go instead of an avalanche of if-if-if-if-if 2024-02-28 19:36:38 -08:00
metric Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
model Use %q instead of "%s" 2024-02-28 19:47:30 -08:00
oauth2 Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
proxy Proxify video poster attribute 2024-02-23 18:44:20 -08:00
reader Use modern for loops 2024-02-28 19:55:28 -08:00
storage Don't mix up capacity and length 2024-02-28 19:57:30 -08:00
systemd Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
template Simplify formatFileSize 2024-02-28 19:32:38 -08:00
tests Use modern for loops 2024-02-28 19:55:28 -08:00
timezone Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
ui Use %q instead of "%s" 2024-02-28 19:47:30 -08:00
urllib Use strings.EqualFold instead of strings.ToLower(…) == 2024-02-28 19:47:30 -08:00
validator Remove Golint 2024-02-24 21:17:56 -08:00
version Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
worker Use modern for loops 2024-02-28 19:55:28 -08:00