Skip to content

Commit

Permalink
#382 Refactors the declaration array to simplify things
Browse files Browse the repository at this point in the history
  • Loading branch information
peterramsing committed Apr 7, 2018
1 parent 13dc038 commit cbc0725
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/lost-offset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function lostOffsetDecl(css, settings) {
css.walkDecls('lost-offset', function lostOffsetDeclFunction(decl) {
var declArr = [];
var declArr = decl.value.split(' ');
var lostOffset;
var lostOffsetNumerator;
var lostOffsetDirection;
Expand All @@ -16,7 +16,6 @@ module.exports = function lostOffsetDecl(css, settings) {
});
}

declArr = decl.value.split(' ');
lostOffset = declArr[0];
lostOffsetNumerator = declArr[0].split('/')[0];

Expand Down

0 comments on commit cbc0725

Please sign in to comment.