style: format
This commit is contained in:
parent
694b029fa9
commit
1ec476d142
@ -466,7 +466,11 @@ export async function runHeartbeatOnce(opts: {
|
|||||||
const heartbeatFilePath = path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME);
|
const heartbeatFilePath = path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME);
|
||||||
try {
|
try {
|
||||||
const heartbeatFileContent = await fs.readFile(heartbeatFilePath, "utf-8");
|
const heartbeatFileContent = await fs.readFile(heartbeatFilePath, "utf-8");
|
||||||
if (isHeartbeatContentEffectivelyEmpty(heartbeatFileContent) && !isExecEventReason && !isCronReason) {
|
if (
|
||||||
|
isHeartbeatContentEffectivelyEmpty(heartbeatFileContent) &&
|
||||||
|
!isExecEventReason &&
|
||||||
|
!isCronReason
|
||||||
|
) {
|
||||||
emitHeartbeatEvent({
|
emitHeartbeatEvent({
|
||||||
status: "skipped",
|
status: "skipped",
|
||||||
reason: "empty-heartbeat-file",
|
reason: "empty-heartbeat-file",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user