Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

staticcheck: ignore suggestion to use context.TODO instead of nil when testing nil Context

albertonyc9d67c86fb69
diff --git a/fs/config_test.go b/fs/config_test.go
index 9813dc218..f9157bbf6 100644
--- a/fs/config_test.go
+++ b/fs/config_test.go
@@ -11,7 +11,7 @@ func TestGetConfig(t *testing.T) {
ctx := context.Background()
// Check nil
- config := GetConfig(nil)
+ config := GetConfig(nil) //lint:ignore SA1012 we want to test passing a nil Context and therefore ignore lint suggestion of using context.TODO
assert.Equal(t, globalConfig, config)
// Check empty config
diff --git a/fs/filter/filter_test.go b/fs/filter/filter_test.go
index 27da120c4..aada638fc 100644
--- a/fs/filter/filter_test.go
+++ b/fs/filter/filter_test.go
@@ -798,7 +798,7 @@ func TestGetConfig(t *testing.T) {
ctx := context.Background()
// Check nil
- config := GetConfig(nil)
+ config := GetConfig(nil) //lint:ignore SA1012 we want to test passing a nil Context and therefore ignore lint suggestion of using context.TODO
assert.Equal(t, globalConfig, config)
// Check empty config