Skip to content

Commit

Permalink
Merge pull request #200 from Riicksouzaa/fix/eslint-archives
Browse files Browse the repository at this point in the history
Corrigido alguns avisos de ESlint.
  • Loading branch information
lucianopf authored Jun 20, 2021
2 parents e878a39 + 534a1e4 commit faf125f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ node_modules
dist/*
!dist/cep-promise*.js

#Intellij Ide
.idea

#Yarn
yarn.lock

Expand Down
6 changes: 3 additions & 3 deletions src/cep-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function (cepRawValue, configurations = {}) {
}

function validateProviders (providers) {
let availableProviders = Object.keys(getAvailableServices())
const availableProviders = Object.keys(getAvailableServices())

if (!Array.isArray(providers)) {
throw new CepPromiseError({
Expand All @@ -35,7 +35,7 @@ function validateProviders (providers) {
errors: [
{
message:
`O parâmetro providers deve ser uma lista.`,
'O parâmetro providers deve ser uma lista.',
service: 'providers_validation'
}
]
Expand Down Expand Up @@ -107,7 +107,7 @@ function validateInputLength (cepWithLeftPad) {
}

function fetchCepFromServices (cepWithLeftPad, configurations) {
let providersServices = getAvailableServices()
const providersServices = getAvailableServices()

if (configurations.providers.length === 0) {
return Promise.any(
Expand Down
2 changes: 1 addition & 1 deletion src/services/correios.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function extractValuesFromSuccessResponse (xmlObject) {
city: xmlObject.cidade,
neighborhood: xmlObject.bairro,
street: xmlObject.end,
service: 'correios',
service: 'correios'
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/services/viacep.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function extractCepValuesFromResponse (responseObject) {
city: responseObject.localidade,
neighborhood: responseObject.bairro,
street: responseObject.logradouro,
service: 'viacep',
service: 'viacep'
}
}

Expand Down

0 comments on commit faf125f

Please sign in to comment.