Skip to content

Commit

Permalink
Nit: remove double space
Browse files Browse the repository at this point in the history
  • Loading branch information
mstou committed Sep 4, 2018
1 parent a09c60d commit ee00ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/alg/extract-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function extractPath(shortestPaths, source, destination) {
if (shortestPaths[source].predecessor !== undefined) {
throw new Error("Invalid source vertex");
}
if (shortestPaths[destination].predecessor === undefined && destination !== source) {
if (shortestPaths[destination].predecessor === undefined && destination !== source) {
throw new Error("Invalid destination vertex");
}

Expand Down

0 comments on commit ee00ef6

Please sign in to comment.