mirror of
https://github.com/distribution/distribution.git
synced 2025-09-18 16:35:48 +00:00
Enable prealloc linter
This will give us nice little performance gains in some code paths. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
@@ -441,6 +441,7 @@ func (app *App) register(routeName string, dispatch dispatchFunc) {
|
||||
// configureEvents prepares the event sink for action.
|
||||
func (app *App) configureEvents(configuration *configuration.Configuration) {
|
||||
// Configure all of the endpoint sinks.
|
||||
// nolint:prealloc
|
||||
var sinks []events.Sink
|
||||
for _, endpoint := range configuration.Notifications.Endpoints {
|
||||
if endpoint.Disabled {
|
||||
|
Reference in New Issue
Block a user