Skip to content

Commit

Permalink
misc: Unnecessary extra address variable removed
Browse files Browse the repository at this point in the history
  • Loading branch information
donosonaumczuk committed Apr 7, 2022
1 parent 9e911dd commit 95249f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/libraries/PublishingLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 95249f8

Please sign in to comment.