From 5ce0d37640442f2c5596391629ea280fbec2f0c7 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Tue, 24 Jun 2014 10:37:59 -0700 Subject: [PATCH] Stop using #fetch here for now, it just breaks tests --- lib/driver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/driver.js b/lib/driver.js index a62d210..05f01be 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -22,9 +22,9 @@ var Basestar = require('./basestar'), var Driver = module.exports = function Driver(opts) { opts = opts || {}; - this.name = Utils.fetch(opts, 'name'); - this.device = Utils.fetch(opts, 'device'); - this.connection = Utils.fetch(this.device, 'connection'); + this.name = opts.name; + this.device = opts.device; + this.connection = this.device.connection; }; Utils.subclass(Driver, Basestar);