Use 'this' to assign to class field. (#10417)

This commit is contained in:
Thomas Leplus
2021-09-18 20:42:34 -07:00
committed by GitHub
parent a463c11354
commit 80fb9e9889
7 changed files with 7 additions and 7 deletions

View File

@@ -378,7 +378,7 @@ public class ApiClient extends JavaTimeFormatter {
* @return API client
*/
public ApiClient setUserAgent(String userAgent) {
userAgent = userAgent;
this.userAgent = userAgent;
addDefaultHeader("User-Agent", userAgent);
return this;
}