Skip to content

Commit

Permalink
fix code issues sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
mountrcg committed Jan 26, 2025
1 parent 885eb0c commit 8959a8b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/determine-basal/determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
const cr_ = oref2_variables.cr;
const smbMinutes = oref2_variables.smbMinutes;
const uamMinutes = oref2_variables.uamMinutes;
// tdd past 24 hour
const tdd = oref2_variables.currentTDD;
var logOutPut = "";
var tddReason = "";

var dynISFenabled = preferences.useNewFormula

Expand All @@ -168,10 +172,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
systemTime = new Date(currentTime);
}

// tdd past 24 hours
var logOutPut = "";
var tddReason = "";
var tdd = oref2_variables.currentTDD;


const weightedAverage = oref2_variables.weightedAverage;
var overrideFactor = 1;
Expand Down

0 comments on commit 8959a8b

Please sign in to comment.