Skip to content

Commit 984bb33

Browse files
0xSerowtfsayo
andauthored
Startup Error: ENV misconfig (#2378)
* fix * Update info.json --------- Co-authored-by: Sero <69639595+Seroxdesign@users.noreply.github.com> Co-authored-by: Sayo <hi@sayo.wtf>
1 parent afaca20 commit 984bb33

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

agent/src/index.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -1101,10 +1101,12 @@ const checkPortAvailable = (port: number): Promise<boolean> => {
11011101
});
11021102
};
11031103

1104-
const hasValidRemoteUrls = () => {
1105-
const remoteUrls = process.env.REMOTE_CHARACTER_URLS;
1106-
return remoteUrls && remoteUrls !== "" && remoteUrls.startsWith('http');
1107-
};
1104+
1105+
const hasValidRemoteUrls = () =>
1106+
process.env.REMOTE_CHARACTER_URLS &&
1107+
process.env.REMOTE_CHARACTER_URLS !== "" &&
1108+
process.env.REMOTE_CHARACTER_URLS.startsWith("http");
1109+
11081110

11091111
const startAgents = async () => {
11101112
const directClient = new DirectClient();

0 commit comments

Comments
 (0)