Skip to content

Commit

Permalink
naming const obj to descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
viniazvd committed Dec 14, 2017
1 parent f33d5df commit 3e0d921
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ export default class Resource {
this.collectionRoot = collectionRoot;
this.itemRoot = itemRoot;

const obj = {service: 'json-placeholder', prefix: 'http://jsonplaceholder.typicode.com', agent: 'restinga-node/1.0.0 (https://github.com/jay-ess/restinga-node)'};
this.descriptor = obj || null;
const descriptor = {
service: 'json-placeholder',
prefix: 'http://jsonplaceholder.typicode.com',
agent: 'restinga-node/1.0.0 (https://github.com/jay-ess/restinga-node)'
};
this.descriptor = descriptor || null;

this.attributes = {};

Expand Down

0 comments on commit 3e0d921

Please sign in to comment.