Skip to content

Commit

Permalink
fix linter error=
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Nov 10, 2024
1 parent 9ffc89a commit f5fa251
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions integrationutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ func setIntegrationTestEnvs(t *testing.T, testDetails *IntegrationTestDetails) f
// Frogbot sanitizes all the environment variables that start with 'JF',
// so we restore them at the end of the test to avoid collisions with other tests
envRestoreFunc := getJfrogEnvRestoreFunc(t)
//nolint:unused
useLocalRepo := "false"
if testDetails.UseLocalRepo {
useLocalRepo = "true"
}
unsetEnvs := utils.SetEnvsAndAssertWithCallback(t, map[string]string{
utils.RequirementsFileEnv: "requirements.txt",
utils.GitPullRequestIDEnv: testDetails.PullRequestID,
Expand All @@ -92,7 +87,7 @@ func setIntegrationTestEnvs(t *testing.T, testDetails *IntegrationTestDetails) f
utils.GitProjectEnv: testDetails.GitProject,
utils.GitUsernameEnv: testDetails.GitUsername,
utils.GitBaseBranchEnv: mainBranch,
utils.GitUseLocalRepositoryEnv: useLocalRepo,
utils.GitUseLocalRepositoryEnv: fmt.Sprintf("%t", testDetails.UseLocalRepo),
})
return func() {
envRestoreFunc()
Expand Down

0 comments on commit f5fa251

Please sign in to comment.