mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
12 lines
239 B
JavaScript
12 lines
239 B
JavaScript
|
function formatPosition(metadata) {
|
||
|
var line = metadata[0];
|
||
|
var column = metadata[1];
|
||
|
var source = metadata[2];
|
||
|
|
||
|
return source ?
|
||
|
source + ':' + line + ':' + column :
|
||
|
line + ':' + column;
|
||
|
}
|
||
|
|
||
|
module.exports = formatPosition;
|