Skip to content

Commit

Permalink
Fix: Set default Index on diff to 0
Browse files Browse the repository at this point in the history
Set default Index
  • Loading branch information
rzander committed Feb 8, 2018
1 parent 67742b3 commit d9a3e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/jaindb/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public JObject Diff()
sKey = jDB.LookupID(query.First().Key, query.First().Value);

if (!int.TryParse(query.FirstOrDefault(t => t.Key.ToLower() == "index").Value, out int index))
index = 1;
index = 0;

if (!int.TryParse(query.FirstOrDefault(t => t.Key.ToLower() == "mode").Value, out int mode))
mode = 0;
Expand Down

0 comments on commit d9a3e95

Please # to comment.