                 resList.append(item.objectForKey("w") as! String)
             }
             
-            
-            if((self.delegate?.getSuggestionsResult) != nil){
-                self.delegate?.getSuggestionsResult!(resList, error: error)
-            }else{
-                NSLog("Error")
-            }
+            self.delegate?.getSuggestionsResult?(resList, error: error)
             
         }
     }

            var result = json.objectForKey("result") as! NSDictionary
            var list = result.objectForKey("list") as! NSArray
            
            if((self.delegate?.getSearchResult) != nil){
                self.delegate?.getSearchResult!(list, error: error)
            }else{
                NSLog("Error")
            }
            
        }
    }
    

        NSURLConnection.sendAsynchronousRequest(urlrequest, queue: self.op) {
            (response:NSURLResponse!, data:NSData!, error:NSError!) -> Void in
            
            self.delegate?.getGetNpmPackageResult?(data, error: error)
            
        }
    }
