mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-04 06:18:05 +00:00 
			
		
		
		
	Cleanup commented code
This commit is contained in:
		
							parent
							
								
									971abecece
								
							
						
					
					
						commit
						5e63dffd1b
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -403,16 +403,12 @@ func (cli *Client) GetAvatarURL() (url string, err error) {
 | 
				
			||||||
	s := struct {
 | 
						s := struct {
 | 
				
			||||||
		AvatarURL string `json:"avatar_url"`
 | 
							AvatarURL string `json:"avatar_url"`
 | 
				
			||||||
	}{}
 | 
						}{}
 | 
				
			||||||
	// res, err := cli.MakeRequest("GET", urlPath, nil, &s)
 | 
					
 | 
				
			||||||
	_, err = cli.MakeRequest("GET", urlPath, nil, &s)
 | 
						_, err = cli.MakeRequest("GET", urlPath, nil, &s)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return "", err
 | 
							return "", err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// if err = json.Unmarshal(res, &s); err != nil {
 | 
					 | 
				
			||||||
	// 	return "", err
 | 
					 | 
				
			||||||
	// }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return s.AvatarURL, nil
 | 
						return s.AvatarURL, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue