Cleanup linter warnings

This commit is contained in:
Gabe Kangas
2021-07-19 23:37:06 -07:00
parent 4d64539b07
commit 44d6a36b77
8 changed files with 35 additions and 20 deletions

View File

@ -45,7 +45,7 @@ func (c *Libx264Codec) GlobalFlags() string {
}
func (c *Libx264Codec) PixelFormat() string {
return "yuv420p"
return "yuv420p" //nolint:goconst
}
func (c *Libx264Codec) ExtraArguments() string {
@ -78,7 +78,7 @@ func (c *Libx264Codec) GetPresetForLevel(l int) string {
}
if l >= len(presetMapping) {
return "superfast"
return "superfast" //nolint:goconst
}
return presetMapping[l]