fix: go lints
This commit is contained in:
@@ -204,7 +204,7 @@ func discoverTestScenarios(discoveryRoot, displayRoot string) ([]testScenario, e
|
|||||||
return scenarios, nil
|
return scenarios, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func replayScenario(scenario testScenario, shellPath string, tio testIO, sandboxConfig map[string]string) error {
|
func replayScenario(scenario testScenario, shellPath string, _ testIO, sandboxConfig map[string]string) error {
|
||||||
input, err := loadRecordedInput(scenario.inPath)
|
input, err := loadRecordedInput(scenario.inPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to read recorded input: %v", err)
|
return fmt.Errorf("failed to read recorded input: %v", err)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ func resolveTestDirFromConfig(root string, cfg miroconfig.Config) (string, error
|
|||||||
}
|
}
|
||||||
return testDir, nil
|
return testDir, nil
|
||||||
}
|
}
|
||||||
if err != nil && !errors.Is(err, os.ErrNotExist) {
|
if !errors.Is(err, os.ErrNotExist) {
|
||||||
return "", fmt.Errorf("failed to check test directory %s: %v", testDir, err)
|
return "", fmt.Errorf("failed to check test directory %s: %v", testDir, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user