mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-10 05:56:42 +00:00
Micro optimization pt. 2
This commit is contained in:
parent
1b5e6bb7f4
commit
2d72ff3402
@ -66,7 +66,7 @@ func (w WorkerContext) step(job Job) {
|
||||
}
|
||||
|
||||
func DoJob(job *Job, f *File) (newJobs []Job, err error) {
|
||||
if job.Uri.Path[len(job.Uri.Path)-1] == '/' {
|
||||
if len(job.Uri.Path) != 0 && job.Uri.Path[len(job.Uri.Path)-1] == '/' {
|
||||
// Load directory
|
||||
links, err := GetDir(job, f)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user