Skip to content

Commit 1044240

Browse files
committed
ioc: Remove redundant SPC_ATTRIBUTE condition
dbPut() enforces
1 parent b552fe9 commit 1044240

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ioc/iocsource.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,7 @@ void IOCSource::get(Value& node, // node within top level structure addressed by
362362
void
363363
IOCSource::doPreProcessing(dbChannel* pDbChannel, SecurityLogger& securityLogger, const Credentials& credentials,
364364
const SecurityClient& securityClient) {
365-
if (pDbChannel->addr.special == SPC_ATTRIBUTE) {
366-
throw std::runtime_error("Unable to put value: Modifications not allowed: S_db_noMod");
367-
} else if (pDbChannel->addr.precord->disp && pDbChannel->addr.pfield != &pDbChannel->addr.precord->disp) {
365+
if (pDbChannel->addr.precord->disp && pDbChannel->addr.pfield != &pDbChannel->addr.precord->disp) {
368366
throw std::runtime_error("Unable to put value: Field Disabled: S_db_putDisabled");
369367
}
370368

0 commit comments

Comments
 (0)