From 92a2d61217eb697ddb604426e73c3f4bf4fdb8ed Mon Sep 17 00:00:00 2001 From: Nan Date: Sun, 10 Dec 2023 16:52:57 -0800 Subject: [PATCH] [nit] tabbing spaces --- .../com/onesignal/flutter/OneSignalUser.java | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/android/src/main/java/com/onesignal/flutter/OneSignalUser.java b/android/src/main/java/com/onesignal/flutter/OneSignalUser.java index 54d59a6d..4909a59a 100644 --- a/android/src/main/java/com/onesignal/flutter/OneSignalUser.java +++ b/android/src/main/java/com/onesignal/flutter/OneSignalUser.java @@ -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) { @@ -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 so a try-catch with // a ClassCastException will be thrown try { @@ -118,6 +119,4 @@ private void removeTags(MethodCall call, Result result) { replyError(result, "OneSignal", "deleteTags failed with error: " + e.getMessage() + "\n" + e.getStackTrace(), null); } } - - }