lint
This commit is contained in:
parent
ca4923f563
commit
40b3c6a768
|
@ -347,9 +347,8 @@ func (c *Client) contentToFilename(content client.MessageContent) (*client.File,
|
||||||
if len(sizes) > 1 {
|
if len(sizes) > 1 {
|
||||||
file := sizes[len(sizes)-1].Photo
|
file := sizes[len(sizes)-1].Photo
|
||||||
return file, strconv.Itoa(int(file.Id)) + ".jpg"
|
return file, strconv.Itoa(int(file.Id)) + ".jpg"
|
||||||
} else {
|
|
||||||
return nil, ""
|
|
||||||
}
|
}
|
||||||
|
return nil, ""
|
||||||
case client.TypeMessageAudio:
|
case client.TypeMessageAudio:
|
||||||
audio, _ := content.(*client.MessageAudio)
|
audio, _ := content.(*client.MessageAudio)
|
||||||
return audio.Audio.Audio, audio.Audio.FileName
|
return audio.Audio.Audio, audio.Audio.FileName
|
||||||
|
|
Loading…
Reference in a new issue