Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 1f6df86

Browse files
realitykingnschonni
authored andcommitted
Replace lodash/assign in favor of the native Object.assign
1 parent 522828a commit 1f6df86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
var path = require('path'),
66
clonedeep = require('lodash/cloneDeep'),
7-
assign = require('lodash/assign'),
87
sass = require('./extensions');
98

109
/**
@@ -288,7 +287,7 @@ module.exports.render = function(opts, cb) {
288287

289288
// options.error and options.success are for libsass binding
290289
options.error = function(err) {
291-
var payload = assign(new Error(), JSON.parse(err));
290+
var payload = Object.assign(new Error(), JSON.parse(err));
292291

293292
if (cb) {
294293
options.context.callback.call(options.context, payload, null);
@@ -438,7 +437,7 @@ module.exports.renderSync = function(opts) {
438437
return result;
439438
}
440439

441-
throw assign(new Error(), JSON.parse(result.error));
440+
throw Object.assign(new Error(), JSON.parse(result.error));
442441
};
443442

444443
/**

0 commit comments

Comments
 (0)