Skip to content

Commit

Permalink
Remove redundant argument
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Jan 21, 2025
1 parent 0e5201b commit 753c92e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion treatment-service/appcontext/appcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func NewAppContext(cfg *config.Config) (*AppContext, error) {
localStorage, err := models.NewLocalStorage(
cfg.GetProjectIds(),
cfg.ManagementService.URL,
cfg.ManagementService.AuthorizationEnabled,
cfg.DeploymentConfig.GoogleApplicationCredentialsEnvVar,
)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion treatment-service/appcontext/appcontext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func TestContext(t *testing.T) {
localStorage, err := models.NewLocalStorage(
testConfig.GetProjectIds(),
testConfig.ManagementService.URL,
testConfig.ManagementService.AuthorizationEnabled,
"",
)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ func (suite *TreatmentServiceTestSuite) TestAllFiltersSwitchback() {
}

func (suite *TreatmentServiceTestSuite) TestLocalStorage() {
storage, err := models.NewLocalStorage([]models.ProjectId{1}, suite.managementServiceServer.URL, false, "")
storage, err := models.NewLocalStorage([]models.ProjectId{1}, suite.managementServiceServer.URL, "")
suite.Require().NoError(err)
suite.Require().NotEmpty(storage)

Expand Down
1 change: 0 additions & 1 deletion treatment-service/models/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ func (s *LocalStorage) getAllProjects() ([]*pubsub.ProjectSettings, error) {
func NewLocalStorage(
projectIds []ProjectId,
xpServer string,
authzEnabled bool,
googleApplicationCredentialsEnvVar string,
) (*LocalStorage, error) {
// Set up Request Modifiers
Expand Down

0 comments on commit 753c92e

Please sign in to comment.