Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
style(lodash): Update lodash imports to be a consistent underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Garant committed Sep 5, 2018
1 parent 5afc2ba commit 0eb96d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ var async = require('async'),
exec = require('./exec'),
truncate = require('truncate'),
logger = require('./logger'),
lodash = require('lodash'),
config = configs.getConfig(true)
config = configs.getConfig(true),
_ = require('lodash')

exports.createContext = function(scope) {
return {
Expand Down Expand Up @@ -77,7 +77,7 @@ exports.invoke = function(path, scope, opt_callback) {
context

if (options.hooks === false || process.env.NODEGH_HOOK_IS_LOCKED) {
opt_callback && opt_callback(lodash.noop)
opt_callback && opt_callback(_.noop)
return
}

Expand Down
6 changes: 3 additions & 3 deletions lib/rest-api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ function _classCallCheck(instance, Constructor) {
var _request = require('request')
var http = require('http')
var _url = require('url')
var lodash = require('lodash')
var _ = require('lodash')
var logger = require('./logger')

var RestApiClient = (function() {
function RestApiClient(options) {
_classCallCheck(this, RestApiClient)

options = lodash.merge(this.DEFAULT_CONFIG, options)
options = _.merge(this.DEFAULT_CONFIG, options)
this.options = options
}

Expand Down Expand Up @@ -80,7 +80,7 @@ var RestApiClient = (function() {
}

if (params) {
p = lodash.merge(p, params)
p = _.merge(p, params)
}

this.authorize(p)
Expand Down

0 comments on commit 0eb96d1

Please sign in to comment.