Simplify an exception's constructor.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=125127036
This commit is contained in:
cgoldfeder 2016-06-16 19:04:21 -07:00 committed by Ben McIlwain
parent 31ddced437
commit 1d2d81492e
2 changed files with 6 additions and 7 deletions

View file

@ -326,10 +326,7 @@ public class FlowPicker {
}
}
// Nothing usable was found, so throw an exception.
throw new UnimplementedCommandException(
innerCommand,
innerCommand instanceof ResourceCommandWrapper
? ((ResourceCommandWrapper) innerCommand).getResourceCommand() : null);
throw new UnimplementedCommandException(innerCommand);
}
/** Command missing. */