fix: updates for new linter rules. Closes #3277
This commit is contained in:
parent
718b76fcc2
commit
3174eb20e5
@ -33,7 +33,7 @@ const (
|
|||||||
// ChatActionSent is a generic chat action that can be used for anything that doesn't need specific handling or formatting.
|
// ChatActionSent is a generic chat action that can be used for anything that doesn't need specific handling or formatting.
|
||||||
ChatActionSent EventType = "CHAT_ACTION"
|
ChatActionSent EventType = "CHAT_ACTION"
|
||||||
// ErrorNeedsRegistration is an error returned when the client needs to perform registration.
|
// ErrorNeedsRegistration is an error returned when the client needs to perform registration.
|
||||||
ErrorNeedsRegistration EventType = "ERROR_NEEDS_REGISTRATION"
|
ErrorNeedsRegistration EventType = "ERROR_NEEDS_REGISTRATION" // nolint:gosec
|
||||||
// ErrorMaxConnectionsExceeded is an error returned when the server determined it should not handle more connections.
|
// ErrorMaxConnectionsExceeded is an error returned when the server determined it should not handle more connections.
|
||||||
ErrorMaxConnectionsExceeded EventType = "ERROR_MAX_CONNECTIONS_EXCEEDED"
|
ErrorMaxConnectionsExceeded EventType = "ERROR_MAX_CONNECTIONS_EXCEEDED"
|
||||||
// ErrorUserDisabled is an error returned when the connecting user has been previously banned/disabled.
|
// ErrorUserDisabled is an error returned when the connecting user has been previously banned/disabled.
|
||||||
|
@ -63,6 +63,7 @@ const (
|
|||||||
discordConfigurationKey = "discord_configuration"
|
discordConfigurationKey = "discord_configuration"
|
||||||
browserPushConfigurationKey = "browser_push_configuration"
|
browserPushConfigurationKey = "browser_push_configuration"
|
||||||
browserPushPublicKeyKey = "browser_push_public_key"
|
browserPushPublicKeyKey = "browser_push_public_key"
|
||||||
|
// nolint:gosec
|
||||||
browserPushPrivateKeyKey = "browser_push_private_key"
|
browserPushPrivateKeyKey = "browser_push_private_key"
|
||||||
hasConfiguredInitialNotificationsKey = "has_configured_initial_notifications"
|
hasConfiguredInitialNotificationsKey = "has_configured_initial_notifications"
|
||||||
hideViewerCountKey = "hide_viewer_count"
|
hideViewerCountKey = "hide_viewer_count"
|
||||||
@ -647,6 +648,7 @@ func FindHighestVideoQualityIndex(qualities []models.StreamOutputVariant) int {
|
|||||||
return indexedQualities[a].quality.VideoBitrate > indexedQualities[b].quality.VideoBitrate
|
return indexedQualities[a].quality.VideoBitrate > indexedQualities[b].quality.VideoBitrate
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// nolint:gosec
|
||||||
return indexedQualities[0].index
|
return indexedQualities[0].index
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user