mirror of
				https://github.com/rclone/rclone.git
				synced 2025-10-30 23:17:59 +02:00 
			
		
		
		
	staticcheck: ignore suggestion to use context.TODO instead of nil when testing nil Context
This commit is contained in:
		| @@ -11,7 +11,7 @@ func TestGetConfig(t *testing.T) { | |||||||
| 	ctx := context.Background() | 	ctx := context.Background() | ||||||
|  |  | ||||||
| 	// Check nil | 	// 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) | 	assert.Equal(t, globalConfig, config) | ||||||
|  |  | ||||||
| 	// Check empty config | 	// Check empty config | ||||||
|   | |||||||
| @@ -798,7 +798,7 @@ func TestGetConfig(t *testing.T) { | |||||||
| 	ctx := context.Background() | 	ctx := context.Background() | ||||||
|  |  | ||||||
| 	// Check nil | 	// 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) | 	assert.Equal(t, globalConfig, config) | ||||||
|  |  | ||||||
| 	// Check empty config | 	// Check empty config | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user