Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix whitespace
  • Loading branch information
shime committed Feb 23, 2016
commit d8e1c3c3dea5401bcc69d7e687a312e415cdbbfc
8 changes: 4 additions & 4 deletions lib/airbrake.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,17 +318,17 @@ Airbrake.prototype.cgiDataVars = function(err) {
var cgiData = {};
var self = this;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forEach on line 330 should support second argument - thisArg, so you don't have to store this.


if (this.whiteListKeys.length > 0){
if (this.whiteListKeys.length > 0) {
Object.keys(process.env).forEach(function(key) {
if (self.whiteListKeys.indexOf(key) > -1){
if (self.whiteListKeys.indexOf(key) > -1) {
cgiData[key] = process.env[key];
} else {
cgiData[key] = "[FILTERED]";
}
})
} else if (this.blackListKeys.length > 0){
} else if (this.blackListKeys.length > 0) {
Object.keys(process.env).forEach(function(key) {
if (self.blackListKeys.indexOf(key) > -1){
if (self.blackListKeys.indexOf(key) > -1 ) {
cgiData[key] = "[FILTERED]";
} else {
cgiData[key] = process.env[key];
Expand Down