misc: Unnecessary extra address variable removed

This commit is contained in:
donosonaumczuk
2022-04-07 14:02:04 +01:00
parent 9e911ddb34
commit 95249f8617

View File

@@ -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;
}