Skip to content

Commit

Permalink
... works (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatusiak committed Feb 5, 2024
1 parent 3bd8098 commit 3070627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rad.js
Expand Up @@ -3,7 +3,7 @@
var sT = setTimeout, Book = sT.Book || require('gun/src/book'), RAD = sT.RAD || (sT.RAD = function(opt){
opt = opt || {};
opt.file = String(opt.file || 'radata');
var log = opt.log || nope;
var log = opt.log || console.log

var has = (sT.RAD.has || (sT.RAD.has = {}))[opt.file];
if(has){ return has } // TODO: BUG? Not reuses same instance?
Expand Down Expand Up @@ -115,7 +115,7 @@
sT.each = sT.each || function(l,f){l.forEach(f)};

try { module.exports = RAD } catch (e){ }

/*
// junk below that needs to be cleaned up and corrected for the actual correct RAD API.
var env = {}, nope = function(){ }, nah = function(){ return nope }, u;
env.require = (typeof require !== '' + u && require) || nope;
Expand All @@ -141,7 +141,7 @@
stats.memory.used = env.process.memoryUsage().rss / 1024 / 1024; // in MB
console.log(stats.memory);
}, 9);

*/
}());


Expand Down

0 comments on commit 3070627

Please sign in to comment.