remove ternary assignment

bug/bundler_fix
RageLtMan 2012-10-03 23:34:41 -04:00
parent 94f8a41b57
commit c0d746a36a
1 changed files with 20 additions and 16 deletions

View File

@ -51,22 +51,26 @@ require 'cgi'
end
def run_host(ip)
valstr = ::File.file?(datastore['SUBDOM_LIST']) ?
IO.readlines(datastore['SUBDOM_LIST']).map {|e| e.gsub(".#{datastore['DOMAIN']}", "").chomp} :
[
"admin",
"services",
"webmail",
"console",
"apps",
"mail",
"intranet",
"intra",
"spool",
"corporate",
"www",
"web"
]
if ::File.file?(datastore['SUBDOM_LIST'])
valstr = IO.readlines(datastore['SUBDOM_LIST']).map {
|e| e.gsub(".#{datastore['DOMAIN']}", "").chomp
}
else
valstr = [
"admin",
"services",
"webmail",
"console",
"apps",
"mail",
"intranet",
"intra",
"spool",
"corporate",
"www",
"web"
]
end
datastore['QUERY'] ? tquery = queryparse(datastore['QUERY']): nil
datastore['HEADERS'] ? thead = headersparse(datastore['HEADERS']) : nil