@putout/operate
Advanced tools
Comparing version 8.1.0 to 8.2.0
@@ -121,9 +121,6 @@ 'use strict'; | ||
const comments = getComments(path); | ||
const nextPath = path.getNextSibling(); | ||
const {block} = path.scope.getProgramParent(); | ||
const programBlock = path.scope.getProgramParent().block; | ||
if (nextPath.node) | ||
nextPath.node.comments = comments; | ||
else | ||
block.comments = comments; | ||
if (path.scope.block === programBlock) | ||
programBlock.comments = comments; | ||
@@ -130,0 +127,0 @@ path.remove(); |
{ | ||
"name": "@putout/operate", | ||
"version": "8.1.0", | ||
"version": "8.2.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
15724
278