Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Mar 15, 2024
1 parent 7f12987 commit aa894e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/ngsi-ld/animal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function displayAnimal(req, res) {
{ options: 'concise' },
ngsiLD.setHeaders(req.session.access_token, LinkHeader)
);
return res.render('animal', { title: animal.name, animal});
return res.render('animal', { title: animal.name, animal });
} catch (error) {
const errorDetail = error.error;
debug(errorDetail);
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/ngsi-ld/land.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function displayLands(req, res) {
stack: errorDetail.title
}
}
: { title: 'Error', error}
: { title: 'Error', error }
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const History = require('../controllers/history');
const DeviceListener = require('../controllers/iot/command-listener');
const Security = require('../controllers/security');
const _ = require('lodash');
const debug = require('debug')('tutorial:ngsi-ld');
//const debug = require('debug')('tutorial:ngsi-ld');

const TRANSPORT = process.env.DUMMY_DEVICES_TRANSPORT || 'HTTP';
const DEVICE_PAYLOAD = process.env.DUMMY_DEVICES_PAYLOAD || 'ultralight';
Expand Down
4 changes: 2 additions & 2 deletions app/views/animal.pug
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ block content
| #{animal.name} -
- if (animal.id)
small
code
code(style="text-transform:initial")
strong
| #{animal.id}
| #{animal.id}

- if (animal.species == 'dairy cattle')
div
Expand Down

0 comments on commit aa894e3

Please sign in to comment.