Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Format Bot authored and gsteinLTU committed Jul 30, 2024
1 parent 778724e commit ceb2a3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/procedures/iotscape/iotscape.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ IoTScape._send = function (service, id, command, caller) {
* @param {RemoteInfo} remote Remote host information
*/
IoTScape._createService = async function (definition, remote = null) {

let parsed = null;

// Handle buffer input
if (Buffer.isBuffer(definition)) {
definition = definition.toString();
Expand All @@ -200,7 +199,7 @@ IoTScape._createService = async function (definition, remote = null) {

const name = Object.keys(parsed)[0];
parsed = parsed[name];

// Verify service definition is in message
if (typeof (parsed.service) == "undefined") {
logger.log("Service definition not found in message");
Expand Down

0 comments on commit ceb2a3d

Please sign in to comment.