Skip to content

Commit 028aae0

Browse files
committed
Refactor to make code more readable
1 parent d3e0284 commit 028aae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = source
77
function source(value, file) {
88
var doc = String(file)
99
var loc = location(file)
10-
var val = value && value.position ? value.position : value || {}
10+
var val = (value && value.position) || value || {}
1111
var start
1212
var end
1313
var indents

0 commit comments

Comments
 (0)