aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-02 19:32:32 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-02 19:32:32 +0300
commit40b3c6a76884576dc4e3b81891c9c693c7882bab (patch)
treee0c913f24f84ec930866b44e31c98c9ed177e2c2 /telegram
parentca4923f5635e2696b4e59d01fec4866b568d4f23 (diff)
lint
Diffstat (limited to 'telegram')
-rw-r--r--telegram/utils.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/telegram/utils.go b/telegram/utils.go
index 8b3eb13..7e9882d 100644
--- a/telegram/utils.go
+++ b/telegram/utils.go
@@ -347,9 +347,8 @@ func (c *Client) contentToFilename(content client.MessageContent) (*client.File,
if len(sizes) > 1 {
file := sizes[len(sizes)-1].Photo
return file, strconv.Itoa(int(file.Id)) + ".jpg"
- } else {
- return nil, ""
}
+ return nil, ""
case client.TypeMessageAudio:
audio, _ := content.(*client.MessageAudio)
return audio.Audio.Audio, audio.Audio.FileName