Skip to content

Commit 5b071c0

Browse files
committed
remove instanceof check
1 parent 45aebfe commit 5b071c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storm-core/src/jvm/backtype/storm/task/ShellBolt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public ShellBolt(String... command) {
7373
public void prepare(Map stormConf, TopologyContext context,
7474
final OutputCollector collector) {
7575
Object maxPending = stormConf.get(Config.TOPOLOGY_SHELLBOLT_MAX_PENDING);
76-
if (maxPending != null && maxPending instanceof Number) {
76+
if (maxPending != null) {
7777
this._pendingWrites = new LinkedBlockingQueue(((Number)maxPending).intValue());
7878
}
7979
_rand = new Random();

0 commit comments

Comments
 (0)