diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-10 01:11:19 +0300 |
---|---|---|
committer | Nejc Habjan <nejc.habjan@siemens.com> | 2022-06-27 11:36:53 +0300 |
commit | 9d39341fe0a5dad0080bd3d472c1b8fb757ceeb6 (patch) | |
tree | 57e3eb9de7096834616fefb9b5ae0907cf540f07 /internal | |
parent | 12ca83b790fdddbbfcf7c6b08aa9da79a3ab8f6d (diff) |
Swap int casts for MaxConfigSize
Diffstat (limited to 'internal')
-rw-r--r-- | internal/redirects/redirects.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/redirects/redirects.go b/internal/redirects/redirects.go index 04815404..5d901505 100644 --- a/internal/redirects/redirects.go +++ b/internal/redirects/redirects.go @@ -123,7 +123,7 @@ func ParseRedirects(ctx context.Context, root vfs.Root) *Redirects { return &Redirects{error: errNeedRegularFile} } - if int(fi.Size()) > cfg.MaxConfigSize { + if fi.Size() > int64(cfg.MaxConfigSize) { return &Redirects{error: errFileTooLarge} } |