mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 21:01:43 +03:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -19,7 +19,9 @@ beforeEach(() => {
|
||||
|
||||
const resolveGatewayToken = (): string => {
|
||||
const token = (testState.gatewayAuth as { token?: string } | undefined)?.token;
|
||||
if (!token) throw new Error("test gateway token missing");
|
||||
if (!token) {
|
||||
throw new Error("test gateway token missing");
|
||||
}
|
||||
return token;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user