Skip to content

Commit 211b7b0

Browse files
refactor(style): code review suggestions
courtesy @riccardopersiani Co-Authored-By: Riccardo Persiani <[email protected]>
1 parent 35d8933 commit 211b7b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

oraclizeAPI_0.4.25.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ contract usingOraclize {
351351
OraclizeIBytes oraclizeBytes;
352352

353353
modifier oraclizeAPI {
354-
if((address(OAR)==0)||(getCodeSize(address(OAR))==0))
354+
if((address(OAR) == 0) || (getCodeSize(address(OAR)) == 0))
355355
oraclize_setNetwork(networkID_auto);
356356

357357
address oraclizeConnector = OAR.getAddress();
@@ -366,12 +366,12 @@ contract usingOraclize {
366366
_;
367367
}
368368

369-
function oraclize_setNetwork(uint8 networkID) internal returns(bool){
369+
function oraclize_setNetwork(uint8 networkID) internal returns(bool) {
370370
return oraclize_setNetwork();
371371
networkID; // silence the warning and remain backwards compatible
372372
}
373-
function oraclize_setNetwork() internal returns(bool){
374-
if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
373+
function oraclize_setNetwork() internal returns(bool) {
374+
if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed) > 0) { //mainnet
375375
OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
376376
oraclize_setNetworkName("eth_mainnet");
377377
return true;

0 commit comments

Comments
 (0)