Skip to content

Commit

Permalink
Remove callback from function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingrozav committed Sep 8, 2017
1 parent 8251b7c commit 64be55e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import debug from 'debug';
const log = debug('watsonwork-helloworld-app');

// Return a list of spaces the app belongs to
const spaces = (tok,cb) => {
const spaces = (tok) => {
return new Promise((resolve, reject) => {
request.post('https://api.watsonwork.ibm.com/graphql', {
headers: {
Expand Down Expand Up @@ -44,7 +44,7 @@ const spaces = (tok,cb) => {
};

// Return an OAuth token for the app
const token = (appId, secret, cb) => {
const token = (appId, secret) => {
return new Promise((resolve, reject) => {
request.post('https://api.watsonwork.ibm.com/oauth/token', {
auth: {
Expand Down

0 comments on commit 64be55e

Please sign in to comment.