Skip to content

Commit

Permalink
[nit] tabbing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-li committed Jan 31, 2024
1 parent 48825e2 commit 92a2d61
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions android/src/main/java/com/onesignal/flutter/OneSignalUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ else if (call.method.contentEquals("OneSignal#removeTags"))

private void setLanguage(MethodCall call, Result result) {
String language = call.argument("language");
if (language != null && language.length() == 0)
language = null;

OneSignal.getUser().setLanguage(language);
if (language != null && language.length() == 0) {
language = null;
}
OneSignal.getUser().setLanguage(language);
}

private void addAliases(MethodCall call, Result result) {
Expand All @@ -83,23 +83,24 @@ private void removeAliases(MethodCall call, Result result) {
private void addEmail(MethodCall call, Result result) {
OneSignal.getUser().addEmail((String) call.arguments);
replySuccess(result, null);
}
}

private void removeEmail(MethodCall call, Result result) {
private void removeEmail(MethodCall call, Result result) {
OneSignal.getUser().removeEmail((String) call.arguments);
replySuccess(result, null);
}
}

private void addSms(MethodCall call, Result result) {
private void addSms(MethodCall call, Result result) {
OneSignal.getUser().addSms((String) call.arguments);
replySuccess(result, null);
}
}

private void removeSms(MethodCall call, Result result) {
private void removeSms(MethodCall call, Result result) {
OneSignal.getUser().removeSms((String) call.arguments);
replySuccess(result, null);
}
private void addTags(MethodCall call, Result result) {
}

private void addTags(MethodCall call, Result result) {
// call.arguments is being casted to a Map<String, Object> so a try-catch with
// a ClassCastException will be thrown
try {
Expand All @@ -118,6 +119,4 @@ private void removeTags(MethodCall call, Result result) {
replyError(result, "OneSignal", "deleteTags failed with error: " + e.getMessage() + "\n" + e.getStackTrace(), null);
}
}


}

0 comments on commit 92a2d61

Please sign in to comment.