YARN-9400. Remove unnecessary if at EntityGroupFSTimelineStore#parseApplicationId. Contributed by Prabhu Joseph.

This commit is contained in:
Abhishek Modi 2019-09-02 10:58:23 +05:30
parent b939ae98e6
commit f4d6e82075

View File

@ -549,16 +549,12 @@ private static boolean shouldCleanAppLogDir(Path appLogPath, long now,
// converts the String to an ApplicationId or null if conversion failed
private static ApplicationId parseApplicationId(String appIdStr) {
ApplicationId appId = null;
if (appIdStr.startsWith(ApplicationId.appIdStrPrefix)) {
try {
appId = ApplicationId.fromString(appIdStr);
return ApplicationId.fromString(appIdStr);
} catch (IllegalArgumentException e) {
appId = null;
return null;
}
}
return appId;
}
private static ClassLoader createPluginClassLoader(
final String appClasspath, final String[] systemClasses)