Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
default line number to be 1 for creating a location (#7581)
Browse files Browse the repository at this point in the history
  • Loading branch information
jainsneha23 authored and Jason Laster committed Jan 2, 2019
1 parent 7b9afca commit 01bb18b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ type IncompleteLocation = {

export function createLocation({
sourceId,
line,
line = 1,
column,
sourceUrl
sourceUrl = ""
}: IncompleteLocation): SourceLocation {
return {
sourceId,
line: line || 0,
line,
column,
sourceUrl: sourceUrl || ""
sourceUrl
};
}

0 comments on commit 01bb18b

Please sign in to comment.