Skip to content

Commit

Permalink
Allow for array
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Sep 13, 2024
1 parent 22c0155 commit 2ce4277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whimsy/asf/documents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def self.findpath(userid, env, getDates=false)
names = list.select{|x,_y| x.start_with?("#{userid}.") or x == "#{userid}/"} # if there is a sig, then files are in a subdir
if names.size == 1
name = names.first
path = ASF::SVN.svnpath!(STEM, name)
path = ASF::SVN.svnpath!(STEM, getDates ? name.first : name)
return [path, name].flatten # this works equally well with or without dates
end
return nil
Expand Down

0 comments on commit 2ce4277

Please sign in to comment.