fix: annotate false lgtm hardcoded creds alert (#7069)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Caleb Cartwright
2021-09-26 15:05:00 -05:00
committed by GitHub
parent 0fe5839757
commit 926e62f927

View File

@@ -15,7 +15,10 @@ export default class WeblateBase extends BaseJsonService {
async fetch(requestParams) {
return this._requestJson(
this.authHelper.withBearerAuthHeader(requestParams, 'Token')
this.authHelper.withBearerAuthHeader(
requestParams,
'Token' // lgtm [js/hardcoded-credentials]
)
)
}
}