Skip to content

Commit 69ab661

Browse files
committed
Keep code style consistent.
1 parent 64e0ecf commit 69ab661

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/robotjs.cc

+6-3
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ NAN_METHOD(scrollMouse)
284284
|_|\_\___|\__, |_.__/ \___/ \__,_|_| \__,_|
285285
|___/
286286
*/
287-
struct KeyNames {
287+
struct KeyNames
288+
{
288289
const char* name;
289290
MMKeyCode key;
290291
};
@@ -358,7 +359,8 @@ int CheckKeyCodes(char* k, MMKeyCode *key)
358359
*key = K_NOT_A_KEY;
359360

360361
KeyNames* kn = key_names;
361-
while (kn->name) {
362+
while (kn->name)
363+
{
362364
if (strcmp(k, kn->name) == 0)
363365
{
364366
*key = kn->key;
@@ -367,7 +369,8 @@ int CheckKeyCodes(char* k, MMKeyCode *key)
367369
kn++;
368370
}
369371

370-
if (*key == K_NOT_A_KEY) {
372+
if (*key == K_NOT_A_KEY)
373+
{
371374
return -2;
372375
}
373376

0 commit comments

Comments
 (0)