Skip to content

Commit a9058bf

Browse files
committed
#21 remove unused code
1 parent 2f231fb commit a9058bf

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

wechaty-puppet-padplus/src/main/scala/wechaty/padplus/support/GrpcSupport.scala

+1-7
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,7 @@ trait GrpcSupport {
198198
case t if t =:= typeOf[JsonNode] =>
199199
Puppet.objectMapper.readTree(streamResponse.getData).asInstanceOf[T]
200200
case _ =>
201-
try {
202-
Puppet.objectMapper.readValue(streamResponse.getData, classTag.runtimeClass).asInstanceOf[T]
203-
} catch {
204-
case e: Throwable =>
205-
logger.error(e.getMessage, e)
206-
throw e
207-
}
201+
Puppet.objectMapper.readValue(streamResponse.getData, classTag.runtimeClass).asInstanceOf[T]
208202
}
209203
}
210204
}

0 commit comments

Comments
 (0)