Skip to content

Commit

Permalink
file.rb: remove unneeded version.to_s call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawa Ometto committed Aug 1, 2023
1 parent a51a7a5 commit 0498f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gollum-lib/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def self.find(wiki, path, version, try_on_disk = false, global_match = false)
return self.global_find(wiki, version, query_path, try_on_disk)
else
begin
root = wiki.commit_for(version.to_s)
root = wiki.commit_for(version)
return nil unless root
tree = dir == '.' ? root.tree : root.tree / dir
return nil unless tree
Expand Down

0 comments on commit 0498f5b

Please sign in to comment.