another String() improvement
This commit is contained in:
parent
23f657024b
commit
e3f2c831ee
@ -36,14 +36,6 @@ func (r Resolution) String() string {
|
|||||||
switch r {
|
switch r {
|
||||||
case Resolution4K:
|
case Resolution4K:
|
||||||
return "4K"
|
return "4K"
|
||||||
case ResolutionQuadHD:
|
|
||||||
return "1440p"
|
|
||||||
case ResolutionFullHD:
|
|
||||||
return "1080p"
|
|
||||||
case ResolutionHD:
|
|
||||||
return "720p"
|
|
||||||
case ResolutionSD:
|
|
||||||
return "SD"
|
|
||||||
default:
|
default:
|
||||||
return fmt.Sprintf("%dp", r)
|
return fmt.Sprintf("%dp", r)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user