@@ -148,7 +148,6 @@ class MapGenerator {
148
148
if ( Buffer ) {
149
149
return Buffer . from ( str ) . toString ( 'base64' )
150
150
} else {
151
- /* c8 ignore next 2 */
152
151
return window . btoa ( unescape ( encodeURIComponent ( str ) ) )
153
152
}
154
153
}
@@ -166,7 +165,6 @@ class MapGenerator {
166
165
} else {
167
166
content = this . outputFile ( ) + '.map'
168
167
}
169
- /* c8 ignore next 6 */
170
168
let eol = '\n'
171
169
if ( this . css . includes ( '\r\n' ) ) eol = '\r\n'
172
170
@@ -227,7 +225,6 @@ class MapGenerator {
227
225
228
226
toUrl ( path ) {
229
227
if ( sep === '\\' ) {
230
- /* c8 ignore next 2 */
231
228
path = path . replace ( / \\ / g, '/' )
232
229
}
233
230
return encodeURI ( path ) . replace ( / [ # ? ] / g, encodeURIComponent )
@@ -240,7 +237,6 @@ class MapGenerator {
240
237
if ( pathToFileURL ) {
241
238
return pathToFileURL ( node . source . input . from ) . toString ( )
242
239
} else {
243
- /* c8 ignore next 4 */
244
240
throw new Error (
245
241
'`map.absolute` option is not available in this PostCSS build'
246
242
)
@@ -270,15 +266,13 @@ class MapGenerator {
270
266
271
267
if ( node && type !== 'end' ) {
272
268
mapping . generated . line = line
273
- /* c8 ignore next */
274
269
mapping . generated . column = column - 1
275
270
if ( node . source && node . source . start ) {
276
271
mapping . source = this . sourcePath ( node )
277
272
mapping . original . line = node . source . start . line
278
273
mapping . original . column = node . source . start . column - 1
279
274
this . map . addMapping ( mapping )
280
275
} else {
281
- /* c8 ignore next 8 */
282
276
mapping . source = noSource
283
277
mapping . original . line = 1
284
278
mapping . original . column = 0
0 commit comments