mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 02:40:03 +00:00
Separate the url resolve onto a new line.
This commit is contained in:
parent
a5aaee107d
commit
eaa16ccd31
@ -9,7 +9,9 @@ Promise = require 'bluebird'
|
||||
request = Promise.promisify require 'request'
|
||||
JSONStream = require 'JSONStream'
|
||||
PlatformAPI = require 'resin-platform-api/request'
|
||||
resinAPI = new PlatformAPI(url.resolve(process.env.API_ENDPOINT, '/ewa/'))
|
||||
|
||||
PLATFORM_ENDPOINT = url.resolve(process.env.API_ENDPOINT, '/ewa/')
|
||||
resinAPI = new PlatformAPI(PLATFORM_ENDPOINT)
|
||||
|
||||
docker = Promise.promisifyAll(new Docker(socketPath: '/run/docker.sock'))
|
||||
# Hack dockerode to promisify internal classes' prototypes
|
||||
|
Loading…
Reference in New Issue
Block a user