From 95249f8617199bbb2684957ada85309d7e33e076 Mon Sep 17 00:00:00 2001 From: donosonaumczuk Date: Thu, 7 Apr 2022 14:02:04 +0100 Subject: [PATCH] misc: Unnecessary extra address variable removed --- contracts/libraries/PublishingLogic.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/libraries/PublishingLogic.sol b/contracts/libraries/PublishingLogic.sol index ff05ddc4..0046bfac 100644 --- a/contracts/libraries/PublishingLogic.sol +++ b/contracts/libraries/PublishingLogic.sol @@ -84,8 +84,7 @@ library PublishingLogic { DataTypes.ProfileStruct storage _profile, mapping(address => bool) storage _followModuleWhitelisted ) external { - address prevFollowModule = _profile.followModule; - if (followModule != prevFollowModule) { + if (followModule != _profile.followModule) { _profile.followModule = followModule; }