Skip to content

Commit

Permalink
lint fix, update log message
Browse files Browse the repository at this point in the history
  • Loading branch information
bratelefant committed Feb 13, 2024
1 parent 637bc7e commit ea64ba0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions src/Tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ function _debugFunc() {
// on some browser we come across, like it was on IE 7).
//
// Lazy evaluation because `Meteor` does not exist right away.(??)
return typeof Meteor !== 'undefined'
? Meteor._debug
: typeof console !== 'undefined' && console.error
? function () {
console.error.apply(console, arguments);
}
: function () {};
if (typeof Meteor !== 'undefined') {
return Meteor._debug;
}

return typeof console !== 'undefined' && console.error
? function () {
console.error.apply(console, arguments);
}
: function () {};
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const User = {
if (!value) {
Meteor.isVerbose &&
console.info(
'User._loginWithToken::: parameter value is null, do not save token.'
'User._loginWithToken::: parameter value is null, will not save as token.'
);
} else {
Data._tokenIdSaved = value;
Expand Down

0 comments on commit ea64ba0

Please sign in to comment.