Skip to content

Commit 9d4a1d2

Browse files
committed
tools fix
1 parent d68afda commit 9d4a1d2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bang/resource_fetch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function shouldUpdate($name, $hash) {
1818
global $chkHashStmt;
1919
$chkHashStmt->execute([$name]);
2020
$row = $chkHashStmt->fetch();
21-
return (!empty($row) && $row['hash'] == $hash);
21+
return !(!empty($row) && $row['hash'] == $hash);
2222
}
2323
$setHashStmt = $cacheHashDb->prepare('REPLACE INTO cacheHash (res,hash) VALUES (?,?)');
2424
function setHashCached($name, $hash) {

cgss/resource_fetch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function shouldUpdate($name, $hash) {
2121
global $chkHashStmt;
2222
$chkHashStmt->execute([$name]);
2323
$row = $chkHashStmt->fetch();
24-
return (!empty($row) && $row['hash'] == $hash);
24+
return !(!empty($row) && $row['hash'] == $hash);
2525
}
2626
$setHashStmt = $cacheHashDb->prepare('REPLACE INTO cacheHash (res,hash) VALUES (?,?)');
2727
function setHashCached($name, $hash) {

redive/resource_fetch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function shouldUpdate($name, $hash) {
175175
global $chkHashStmt;
176176
$chkHashStmt->execute([$name]);
177177
$row = $chkHashStmt->fetch();
178-
return (!empty($row) && $row['hash'] == $hash);
178+
return !(!empty($row) && $row['hash'] == $hash);
179179
}
180180
$setHashStmt = $cacheHashDb->prepare('REPLACE INTO cacheHash (res,hash) VALUES (?,?)');
181181
function setHashCached($name, $hash) {

tw_redive/UnityAsset.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ function shouldUpdate($name, $hash) {
11181118
global $chkHashStmt;
11191119
$chkHashStmt->execute([$name]);
11201120
$row = $chkHashStmt->fetch();
1121-
return (!empty($row) && $row['hash'] == $hash);
1121+
return !(!empty($row) && $row['hash'] == $hash);
11221122
}
11231123
$setHashStmt = $cacheHashDb->prepare('REPLACE INTO cacheHash (res,hash) VALUES (?,?)');
11241124
function setHashCached($name, $hash) {

0 commit comments

Comments
 (0)