src: remove redundant symbol init in node_file.cc
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 14 Aug 2013 15:45:40 +0000 (17:45 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 14 Aug 2013 16:08:04 +0000 (18:08 +0200)
Don't lazy-init the oncomplete symbol string in the After() function,
it has already been created at module init time.

src/node_file.cc

index 75f772b..402aa31 100644 (file)
@@ -209,9 +209,6 @@ static void After(uv_fs_t *req) {
     }
   }
 
-  if (oncomplete_sym.IsEmpty()) {
-    oncomplete_sym = FIXED_ONE_BYTE_STRING(node_isolate, "oncomplete");
-  }
   MakeCallback(req_wrap->object(), oncomplete_sym, argc, argv);
 
   uv_fs_req_cleanup(&req_wrap->req_);