async function setInstance (url: string, username: string, password: string, isDefault: boolean) {
const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ])
- if (settings.remotes.indexOf(url) === -1) {
+ if (settings.remotes.includes(url) === false) {
settings.remotes.push(url)
}