Skip to content

Commit

Permalink
White space OCD
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher T committed Feb 14, 2014
1 parent d70fe8c commit 03fe48b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/Clipboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
} catch (JSONException e) {
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
} catch (Exception e) {
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR,e.toString()));
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, e.toString()));
}
} else if (action.equals(actionPaste)) {
if (!clipboard.getPrimaryClipDescription().hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN)) {
Expand All @@ -43,15 +43,15 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo

try {
ClipData.Item item = clipboard.getPrimaryClip().getItemAt(0);
String text = item.getText().toString() ;
String text = item.getText().toString();

if (text == null) text = "";

callbackContext.success(text);

return true;
} catch (Exception e) {
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR,e.toString()));
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, e.toString()));
}
}

Expand Down

0 comments on commit 03fe48b

Please sign in to comment.