Skip to content

Commit

Permalink
Fix max_edit_dist not being set or used
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Spelchak committed Feb 15, 2018
1 parent 5c9196a commit a00a77c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/jobs/dynamic_tool_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
The largest the edit distance can be for a word to be considered
A correction for another word.
"""
max_edit_dist = set()
max_edit_dist = 3


class MalformedYMLException(Exception):
Expand Down Expand Up @@ -1708,7 +1708,7 @@ def get_typo_correction(typo_str, word_set, max_dist):
"""
# Start curr_best out as the largest
# edit distance we will tolerate plus one
curr_best = 4
curr_best = max_dist + 1
suggestion = None

for valid_word in word_set:
Expand Down

0 comments on commit a00a77c

Please sign in to comment.