Skip to content

Commit

Permalink
cleanup unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
emirotin committed Apr 25, 2017
1 parent 5dce8bf commit 0634173
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,17 +338,8 @@ describe('global-proxy', function() {


describe('using env var', function() {
var origHttpProxy;

before(function() {
origHttpProxy = process.env['http_proxy'];
})
after(function() {
if (process.env['http_proxy'] === undefined) {
delete process.env['http_proxy'];
} else {
process.env['http_proxy'] = origHttpProxy;
}
delete process.env['http_proxy'];
});

describe('for http', function() {
Expand Down

0 comments on commit 0634173

Please sign in to comment.