Closed
Bug 1095199
Opened 10 years ago
Closed 10 years ago
Standardize on cb() vs callback()
Categories
(Hello (Loop) :: Server, defect)
Hello (Loop)
Server
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pdehaan, Unassigned)
Details
Attachments
(1 file)
Steps to reproduce: $ egrep -nir "callback\(" . --exclude-dir={coverage,node_modules} | wc -l 147 $ egrep -nir "cb\(" . --exclude-dir={coverage,node_modules} | wc -l 62 Actual results: callback(): 147 instances cb(): 62 instances Expected results: consistent use of `cb()` or `callback()` throughout code.
Comment 1•10 years ago
|
||
Yes, thanks. Preferred way is to use `callback` everywhere.
Comment 2•10 years ago
|
||
I just continue to use cb for async.map callbacks in redis backend since we already use callback for the method callbacks.
Attachment #8525959 -
Flags: review?(tarek)
Attachment #8525959 -
Flags: feedback?(pdehaan)
Comment 3•10 years ago
|
||
see: egrep -nir "cb\(" . --exclude-dir={coverage,node_modules,loadtests}
Updated•10 years ago
|
Attachment #8525959 -
Flags: review?(tarek) → review+
Comment 4•10 years ago
|
||
https://github.com/mozilla-services/loop-server/commit/54d9c07f27c22af7bc9d1fbe202667e5b1a7e865
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Attachment #8525959 -
Flags: feedback?(pdehaan)
You need to log in
before you can comment on or make changes to this bug.
Description
•