Skip to content

Commit

Permalink
[#674] Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdaming committed Oct 1, 2024
1 parent e5eb2ba commit d65a768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/engine/tcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type (
ToggleAutoPush()
SetAutoPush(flag bool)
SetCommitOnFail(flag bool)
SetVariant(variant string)
SetVariant(name string)
GetCurrentRole() role.Role
RunAsDriver()
RunAsNavigator()
Expand Down Expand Up @@ -197,9 +197,9 @@ func (tcr *TCREngine) SetCommitOnFail(flag bool) {
}

// SetVariant sets the TCR variant that will be used by TCR engine
func (tcr *TCREngine) SetVariant(variantName string) {
func (tcr *TCREngine) SetVariant(name string) {
var err error
tcr.variant, err = variant.Select(variantName)
tcr.variant, err = variant.Select(name)
if err != nil {
var unsupportedVariantError *variant.UnsupportedVariantError
if errors.As(err, &unsupportedVariantError) {
Expand Down
1 change: 0 additions & 1 deletion src/engine/tcr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ func initTCREngineWithFakesWithFileDiffs(
tcr.fsWatchRearmDelay = 0
tcr.traceReporterWaitingTime = 0
return tcr, vcsFake

}

func initTCREngineWithFakes(
Expand Down

0 comments on commit d65a768

Please sign in to comment.