Skip to content

Commit

Permalink
Merge pull request #462 from bugsnag/refactor-redundant-constructs
Browse files Browse the repository at this point in the history
Remove redundant/verbose code constructs as reported via Android Lint
  • Loading branch information
fractalwrench committed Apr 15, 2019
2 parents 18ddda1 + e3729f7 commit a0e7e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/bugsnag/android/EventReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static boolean isAndroidKey(@NonNull String actionName) {
@NonNull
static String shortenActionNameIfNeeded(@NonNull String action) {
if (isAndroidKey(action)) {
return action.substring(action.lastIndexOf(".") + 1, action.length());
return action.substring(action.lastIndexOf(".") + 1);
} else {
return action;
}
Expand Down

0 comments on commit a0e7e67

Please sign in to comment.