Fix various linter errors
This commit is contained in:
+2
-1
@@ -10,6 +10,7 @@ import network from './network.js';
|
||||
import os from 'node:os';
|
||||
import { Readable } from 'node:stream';
|
||||
import safe from 'safetydance';
|
||||
import services from './services.js';
|
||||
import shellModule from './shell.js';
|
||||
import superagent from '@cloudron/superagent';
|
||||
import _ from './underscore.js';
|
||||
@@ -214,7 +215,7 @@ async function sendToGraphite() {
|
||||
// the datapoint is (value, timestamp) https://graphite.readthedocs.io/en/latest/
|
||||
async function getGraphiteUrl() {
|
||||
const [error, result] = await safe(docker.inspect('graphite'));
|
||||
if (error && error.reason === BoxError.NOT_FOUND) return { status: SERVICE_STATUS_STOPPED };
|
||||
if (error && error.reason === BoxError.NOT_FOUND) return { status: services.SERVICE_STATUS_STOPPED };
|
||||
if (error) throw error;
|
||||
|
||||
const ip = safe.query(result, 'NetworkSettings.Networks.cloudron.IPAddress', null);
|
||||
|
||||
Reference in New Issue
Block a user