Project

General

Profile

« Previous | Next » 

Revision cab1b1d0

Added by Michael Moll about 4 years ago

Fixes #29120 - Fix Style/RedundantReturn cop

View differences:

modules/tftp/server.rb
# returns the absolute path
def path(p = nil)
p ||= Proxy::TFTP::Plugin.settings.tftproot
return (p =~ /^\//) ? p : Pathname.new(File.expand_path(File.dirname(__FILE__))).join(p).to_s
(p =~ /^\//) ? p : Pathname.new(File.expand_path(File.dirname(__FILE__))).join(p).to_s
end
def read_file(file)

Also available in: Unified diff