Skip to content

Commit

Permalink
Fixing linting errors. Travis works!
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjoy committed Apr 24, 2019
1 parent 977da4e commit b5958e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/example/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let config = {
LMS_BASE_URL: null,
};

let apiClient = null;
let apiClient = null; // eslint-disable-line

function validateConfiguration(newConfig) {
Object.keys(config).forEach((key) => {
Expand All @@ -23,10 +23,10 @@ export function configureApiService(newConfig, newApiClient) {
}

export async function getData(data) {
//const { data } = await apiClient.get(`${config.API_BASE_URL}/example/`, {
return new Promise((resolve, reject) => {
// const { data } = await apiClient.get(`${config.API_BASE_URL}/example/`, {
return new Promise((resolve) => {
setTimeout(() => {
resolve(data);
}, 2000);
});;
});
}

0 comments on commit b5958e0

Please sign in to comment.