8000 Resolve a gmscore one version violation by removing an unused dep · ronibd0/google-http-java-client@7bee549 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bee549

Browse files
clmjeanbza
authored andcommitted
Resolve a gmscore one version violation by removing an unused dep
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=169435879
1 parent 11553ca commit 7bee549

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

google-http-client/src/main/java/com/google/api/client/util/Throwables.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,7 @@ public static RuntimeException propagate(Throwable throwable) {
7575
*/
7676
public static void propagateIfPossible(Throwable throwable) {
7777
if (throwable != null) {
78-
if (throwable instanceof RuntimeException) {
79-
throw (RuntimeException) throwable;
80-
}
81-
if (throwable instanceof Error) {
82-
throw (Error) throwable;
83-
}
78+
com.google.common.base.Throwables.throwIfUnchecked(throwable);
8479
}
8580
}
8681

0 commit comments

Comments
 (0)
0