refactor: replace ignored numeric literals with constants
This commit is contained in:
@@ -11,6 +11,8 @@ import {
|
||||
type SavedCandle,
|
||||
} from '../domain/candle-coverage';
|
||||
|
||||
const NO_UPDATED_ROWS = 0;
|
||||
|
||||
const provider = 'tbank';
|
||||
const interval = 'day';
|
||||
type CandleIntent = {
|
||||
@@ -323,7 +325,7 @@ export class CandleRepository {
|
||||
},
|
||||
data: { state: 'complete', errorCode: null },
|
||||
});
|
||||
return result.count > 0;
|
||||
return result.count > NO_UPDATED_ROWS;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user