gofmt
This commit is contained in:
parent
501c1a7daa
commit
e2edbe37ea
|
@ -1009,8 +1009,9 @@ func (c *Client) OpenPhotoFile(photoFile *client.File, priority int32) (*os.File
|
|||
file, err := os.Open(path)
|
||||
if err == nil {
|
||||
return file, path, nil
|
||||
} else
|
||||
// obtain the photo right now if still not downloaded
|
||||
} else if !photoFile.Local.IsDownloadingCompleted {
|
||||
if !photoFile.Local.IsDownloadingCompleted {
|
||||
tdFile, tdErr := c.DownloadFile(photoFile.Id, priority, true)
|
||||
if tdErr == nil {
|
||||
path = tdFile.Local.Path
|
||||
|
|
Loading…
Reference in a new issue