I've randomly stumbled upon a code where the function uses this; in the end of function
function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view {
require(beneficiary != address(0), "Crowdsale: beneficiary is the zero address");
require(weiAmount != 0, "Crowdsale: weiAmount is 0");
require(weiAmount >= minPurchase, 'have to send at least: minPurchase');
require(_contributions[beneficiary].add(weiAmount)<= maxPurchase, 'can\'t buy more than: maxPurchase');
require((_weiRaised+weiAmount) <= hardCap, 'Hard Cap reached');
this; //What is the purpose of using this; here
}
In last where this; is used what is the purpose of using this, as far as i know this keyword refers to current instance but what purpose does it serve there?