You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "sunjincheng (Jira)" <ji...@apache.org> on 2021/02/21 02:48:00 UTC
[jira] [Created] (IOTDB-1169) Clean up for redundant throw clause
sunjincheng created IOTDB-1169:
----------------------------------
Summary: Clean up for redundant throw clause
Key: IOTDB-1169
URL: https://issues.apache.org/jira/browse/IOTDB-1169
Project: Apache IoTDB
Issue Type: Improvement
Components: Core/Engine
Reporter: sunjincheng
Assignee: sunjincheng
Clean up for redundant throw clause, such as : `StorageEngine#setTTL`.
{code}
public void setTTL(PartialPath storageGroup, long dataTTL) throws StorageEngineException {
// storage group has no data
if (!processorMap.containsKey(storageGroup)) {
return;
}
processorMap.get(storageGroup).setTTL(dataTTL);
}
{code}
`StorageEngineException` is redundant.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)