Skip to content

Commit

Permalink
Remove redundant variable for initializing namespaces step
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kubaczyk committed Nov 24, 2020
1 parent 01db666 commit e0c19ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/app/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ func (s *state) setDefaults() {
func (s *state) initializeNamespaces() {
for nsName, ns := range s.Namespaces {
if ns == nil {
ns = &namespace{}
s.Namespaces[nsName] = ns
s.Namespaces[nsName] = &namespace{}
}
}
}
Expand Down

0 comments on commit e0c19ae

Please sign in to comment.