mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-04 19:41:02 +08:00
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
13 lines
306 B
JavaScript
13 lines
306 B
JavaScript
// @flow
|
|
// This file is not actually executed
|
|
// It is just used by flow for typing
|
|
|
|
const prefix: string = 'Invariant failed';
|
|
|
|
export default function invariant(condition: mixed, message?: string | (() => string)) {
|
|
if (condition) {
|
|
return;
|
|
}
|
|
throw new Error(`${prefix}: ${message || ''}`);
|
|
}
|