last small refactoring

This commit is contained in:
Felix Kunde
2021-02-12 17:29:18 +01:00
parent 8ef9253c37
commit b8b2239140
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -95,8 +95,7 @@ func (ptm *PostgresTeamMap) GetAdditionalSuperuserTeams(team string, transitive
// Load function to import data from PostgresTeam CRD
func (ptm *PostgresTeamMap) Load(pgTeams *acidv1.PostgresTeamList) {
// reset the team map
var emptyTeamMap = make(PostgresTeamMap, 0)
*ptm = emptyTeamMap
*ptm = make(PostgresTeamMap, 0)
superuserTeamSet := teamHashSet{}
teamSet := teamHashSet{}