rclone/lib
Eng Zer Jun c4bad5c1bc lib/rest: remove unnecessary nil check
From the Go docs:

  "A `nil` map is equivalent to an empty map. [1]

Therefore, an additional nil check for `opts.ExtraHeaders` before the loop is
unnecessary because `opts.ExtraHeaders` is a `map`.

[1]: https://go.dev/ref/spec#Map_types

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-09 19:17:42 +09:00
..
atexit lib/atexit: ensure OnError only calls cancel function once 2023-03-22 12:50:58 +00:00
bucket bucket: add Join function for a simplified path.Join 2023-03-03 15:51:00 +00:00
buildinfo version: fix reported os/kernel version for windows 2023-04-10 12:02:26 +02:00
cache lib/cache: fix alias backend shutting down too soon 2022-11-09 16:29:23 +00:00
daemonize build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
debug build: update to go1.21rc3 and make go1.19 the minimum required version 2023-07-16 10:09:25 +01:00
dircache lib: fix typos found by codespell 2023-03-24 20:40:52 +00:00
encoder Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
env docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
errors lib: fix typos found by codespell 2023-03-24 20:40:52 +00:00
exitcode --max-transfer - add new exit code (10) 2023-07-18 09:51:31 +01:00
file authorize: add support for custom templates 2023-02-24 15:08:38 +00:00
http docs: group the global flags and make them appear on command and flags pages 2023-08-02 12:53:09 +01:00
israce build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
jwtutil Use jwt-go (golang-jwt) instead of deprecated jws (x/oauth2/jws) 2023-03-26 19:20:50 +02:00
kv build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
mmap build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
oauthutil rclone config redacted: implement support mechanism for showing redacted config 2023-07-07 16:25:14 +01:00
pacer build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
plugin Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
pool test: Don't run unreliable tests on CI #4171 2020-06-15 21:34:37 +01:00
proxy ftp,sftp: add socks_proxy support for SOCKS5 proxies 2023-07-30 03:02:08 +01:00
random Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
ranges Spelling fixes 2020-10-14 15:21:31 +01:00
readers test: use decompressed.String() instead of string(decompressed.Bytes()) 2023-03-26 14:28:15 +02:00
rest lib/rest: remove unnecessary nil check 2023-08-09 19:17:42 +09:00
structs test: do not test deprecated and unused Dial and DialTLS functions on http Transport type 2023-03-26 14:28:15 +02:00
terminal lib: fix typos found by codespell 2023-03-24 20:40:52 +00:00
version Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00