Skip to content

Commit

Permalink
fix some codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncalabrese committed Apr 17, 2016
1 parent 2b41fe2 commit f76882a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/client/careportal.js
Expand Up @@ -79,7 +79,7 @@ function init (client, plugins, $) {
$('#insulinSplitLabel').css('display',displayType(inputMatrix[eventType]['split']));

$('#reason').empty();
_.each(reasons, function eachReason(reason) {
_.each(reasons, function eachReason (reason) {
$('#reason').append('<option value="' + reason.name + '">' + translate(reason.name) + '</option>');
});

Expand All @@ -102,7 +102,7 @@ function init (client, plugins, $) {
var reasons = inputMatrix[eventType]['reasons'];
var selected = $('#reason').val();

var reason = _.find(reasons, function matches(r) {
var reason = _.find(reasons, function matches (r) {
return r.name === selected;
});

Expand Down
4 changes: 2 additions & 2 deletions tests/openaps.test.js
Expand Up @@ -137,7 +137,7 @@ describe('openaps', function ( ) {
units: 'mg/dl'
}
, pluginBase: {
updatePillText: function mockedUpdatePillText(plugin, options) {
updatePillText: function mockedUpdatePillText (plugin, options) {
options.label.should.equal('OpenAPS ⌁');
options.value.should.equal('2m ago');
var first = _.first(options.info);
Expand All @@ -147,7 +147,7 @@ describe('openaps', function ( ) {
last.label.should.equal('1h ago');
last.value.should.equal('awaitingpi ◉ Waiting');
}
, addForecastPoints: function mockAddForecastPoints(points) {
, addForecastPoints: function mockAddForecastPoints (points) {
points.length.should.equal(12);
done();
}
Expand Down

0 comments on commit f76882a

Please sign in to comment.