Skip to content

Commit

Permalink
removed underscore from bzz
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed May 18, 2021
1 parent d3f8358 commit cea0439
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web3-bzz/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

"use strict";

var _ = require('underscore');

var swarm = require("swarm-js");


Expand Down Expand Up @@ -52,7 +52,7 @@ if (typeof ethereum !== 'undefined' && ethereum.bzz) {

Bzz.prototype.setProvider = function(provider) {
// is ethereum provider
if(_.isObject(provider) && _.isString(provider.bzz)) {
if(typeof provider === 'object' && provider != null && typeof provider.bzz === 'string') {
provider = provider.bzz;
// is no string, set default
}
Expand All @@ -61,7 +61,7 @@ Bzz.prototype.setProvider = function(provider) {
// }


if(_.isString(provider)) {
if(typeof provider === 'string') {
this.currentProvider = provider;
} else {
this.currentProvider = null;
Expand Down

0 comments on commit cea0439

Please sign in to comment.