Closed Bug 1095199 Opened 10 years ago Closed 10 years ago

Standardize on cb() vs callback()

Categories

(Hello (Loop) :: Server, defect)

defect
Not set
normal

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.
Yes, thanks. Preferred way is to use `callback` everywhere.
Attached file Link to GitHub PR.
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)
see: egrep -nir "cb\(" . --exclude-dir={coverage,node_modules,loadtests}
Attachment #8525959 - Flags: review?(tarek) → review+
https://github.com/mozilla-services/loop-server/commit/54d9c07f27c22af7bc9d1fbe202667e5b1a7e865
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Attachment #8525959 - Flags: feedback?(pdehaan)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: