Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce Palmer <[email protected]>
  • Loading branch information
everettraven committed Jan 23, 2025
1 parent f66cb4c commit 476016e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type WantsUserInformer interface {
}

type localInitializer struct {
userInformer userinformer.SharedInformerFactory
userInformer userinformer.SharedInformerFactory
}

// Initialize will check the initialization interfaces implemented by each plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Register(plugins *admission.Plugins) {
return nil, err
}

return NewRestrictUsersAdmission(cfg)
return NewRestrictUsersAdmission(cfg)
})
}

Expand Down Expand Up @@ -99,12 +99,12 @@ var (
func NewRestrictUsersAdmission(cfg *v1alpha1.RestrictSubjectBindingsAdmissionConfig) (admission.Interface, error) {
return &restrictUsersAdmission{
Handler: admission.NewHandler(admission.Create, admission.Update),
oauthState: func() v1alpha1.OpenShiftOAuthState{
if cfg != nil {
return cfg.OpenShiftOAuthDesiredState
}
return v1alpha1.OpenShiftOAuthStateDesired
}(),
oauthState: func() v1alpha1.OpenShiftOAuthState {
if cfg != nil {
return cfg.OpenShiftOAuthDesiredState
}
return v1alpha1.OpenShiftOAuthStateDesired
}(),
}, nil
}

Expand Down

0 comments on commit 476016e

Please sign in to comment.