Skip to content

Commit

Permalink
Spaces to tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed May 27, 2015
1 parent 0ba1797 commit 72a4e94
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,28 +323,28 @@ NAN_METHOD(keyTap)

if (f)
{
switch(CheckKeyFlags(f, &flags))
switch(CheckKeyFlags(f, &flags))
{
case -1:
case -1:
return NanThrowError("Null pointer in key flag.");
break;
case -2:
case -2:
return NanThrowError("Invalid key flag specified.");
break;
}
}
}

switch(CheckKeyCodes(k, &key))
{
case -1:
return NanThrowError("Null pointer in key code.");
break;
case -1:
return NanThrowError("Null pointer in key code.");
break;
case -2:
return NanThrowError("Invalid key code specified.");
break;
default:
tapKeyCode(key, flags);
mssleep(10);
return NanThrowError("Invalid key code specified.");
break;
default:
tapKeyCode(key, flags);
mssleep(10);
}

NanReturnValue(NanNew("1"));
Expand Down

0 comments on commit 72a4e94

Please sign in to comment.