mirror of
https://github.com/lunchcat/sif.git
synced 2026-06-12 19:11:25 -07:00
Remove unreachable code
This commit is contained in:
@@ -51,9 +51,6 @@ func Dirlist(size string, url string, timeout time.Duration, threads int, logdir
|
||||
list = directoryURL + mediumFile
|
||||
case "large":
|
||||
list = directoryURL + bigFile
|
||||
default:
|
||||
log.Errorf("Invalid dirlist size %s. Please choose from small, medium, or large", portstyle.Render(size))
|
||||
return
|
||||
}
|
||||
|
||||
dirlog.Infof("Starting %s directory listing", size)
|
||||
|
||||
@@ -39,9 +39,6 @@ func Dnslist(size string, url string, timeout time.Duration, threads int, logdir
|
||||
list = dnsURL + dnsMediumFile
|
||||
case "large":
|
||||
list = dnsURL + dnsBigFile
|
||||
default:
|
||||
log.Errorf("Invalid dnslist size %s. Please choose from small, medium, or large", portstyle.Render(size))
|
||||
return
|
||||
}
|
||||
|
||||
dnslog.Infof("Starting %s DNS listing", size)
|
||||
|
||||
@@ -57,9 +57,6 @@ func Ports(scope string, url string, timeout time.Duration, threads int, logdir
|
||||
for i := range ports {
|
||||
ports[i] = i
|
||||
}
|
||||
default:
|
||||
log.Errorf("Invalid ports scope %s. Please choose either common or full", portstyle.Render(scope))
|
||||
return
|
||||
}
|
||||
|
||||
var openPorts []string
|
||||
|
||||
Reference in New Issue
Block a user