Skip to content

Commit 683e701

Browse files
authored
refactor: use simple revert instead of "require(false" (#265)
1 parent 53331f4 commit 683e701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StdStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ library stdStorageSafe {
8888
vm.store(who, reads[i], prev);
8989
}
9090
} else {
91-
require(false, "stdStorage find(StdStorage): No storage use detected for target.");
91+
revert("stdStorage find(StdStorage): No storage use detected for target.");
9292
}
9393

9494
require(

0 commit comments

Comments
 (0)