plivo-examples-node icon indicating copy to clipboard operation
plivo-examples-node copied to clipboard

Remove unnecessary variable 'p'

Open esco opened this issue 11 years ago • 0 comments

Looking at the source code it seems like every time you call plivo.RestAPI it updates plivo.options. No new object is created. It always references the same plivo object internally.

var plivo = require('plivo'); var p = plivo.RestAPI(require('./config'));

can be

var plivo = require('plivo').RestAPI(require('./config'));

and plivo can be used throughout the code instead of 'p'

esco avatar Dec 05 '13 05:12 esco