FromPathLoader already calls expand_path
This commit is contained in:
		
							parent
							
								
									ce367e711b
								
							
						
					
					
						commit
						2b8f1ca94b
					
				@ -180,7 +180,7 @@ class Formulary
 | 
			
		||||
        # If name was a path or mapped to a cached formula
 | 
			
		||||
        f = FromPathLoader.new(name_or_path)
 | 
			
		||||
      elsif File.extname(name_or_path) == ".rb"
 | 
			
		||||
        f = FromPathLoader.new(File.expand_path(name_or_path))
 | 
			
		||||
        f = FromPathLoader.new(name_or_path)
 | 
			
		||||
      else
 | 
			
		||||
        f = StandardLoader.new(name_or_path)
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user