让Parse方法直接报错.
This commit is contained in:
parent
d85d8b3059
commit
cff0a27aa0
|
@ -98,15 +98,7 @@ func (curl *CURL) CreateWorkflow(ses *requests.Session) *requests.Workflow {
|
|||
}
|
||||
|
||||
// ParseRawCURL curl_bash 可以用trie改进 没空改
|
||||
func ParseRawCURL(scurl string) (cURL *CURL, err error) {
|
||||
|
||||
defer func() {
|
||||
if _err := recover(); _err != nil {
|
||||
cURL = nil
|
||||
err = _err.(error)
|
||||
}
|
||||
}()
|
||||
|
||||
func ParseRawCURL(scurl string) (cURL *CURL) {
|
||||
executor := newPQueueExecute()
|
||||
curl := New()
|
||||
|
||||
|
@ -153,5 +145,5 @@ func ParseRawCURL(scurl string) (cURL *CURL, err error) {
|
|||
curl.Method = "GET"
|
||||
}
|
||||
|
||||
return curl, nil
|
||||
return curl
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user