Skip to content

Commit eae3aab

Browse files
committed
revert the deps path reset part and sync
1 parent e7e92b3 commit eae3aab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/php/libsdk/SDK/Config.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ public static function getSdkVersion() : string
294294
return file_get_contents($path);
295295
}/*}}}*/
296296

297-
public static function getDepsLocalPath(bool $reset = false) : ?string
297+
public static function getDepsLocalPath() : ?string
298298
{/*{{{*/
299-
if (NULL == self::$depsLocalPath || $reset) {
299+
if (NULL == self::$depsLocalPath) {
300300
if (file_exists("Makefile")) {
301301
$s = file_get_contents("Makefile");
302302

@@ -308,14 +308,14 @@ public static function getDepsLocalPath(bool $reset = false) : ?string
308308
}
309309
}
310310

311-
if (NULL == self::$depsLocalPath || $reset) {
311+
if (NULL == self::$depsLocalPath) {
312312
$tmp = dirname(getcwd()) . DIRECTORY_SEPARATOR . "deps";
313313
if (is_dir($tmp)) {
314314
self::setDepsLocalPath($tmp);
315315
}
316316
}
317317

318-
if (NULL == self::$depsLocalPath || $reset) {
318+
if (NULL == self::$depsLocalPath) {
319319
$tmp = realpath("../deps");
320320
if (is_dir($tmp)) {
321321
self::setDepsLocalPath($tmp);

0 commit comments

Comments
 (0)