Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tengs Penkwe committed Feb 25, 2024
1 parent 2d4c05c commit 25bf466
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/backend/Farm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,16 @@ export class Farm {
Image: Image,
width: outputConfig.outputWidth,
height: outputConfig.outputHeight,
}).then((b64) => {
const data = b64.split(",")[1];
const binaryData = Buffer.from(data, "base64");
return fs.writeFileSync(outputPath, binaryData);
openImage(outputPath);
}).catch((err) => {
logger.error(`Error displaying farm: ${err}`);
});
})
.then((b64) => {
const data = b64.split(",")[1];
const binaryData = Buffer.from(data, "base64");
return fs.writeFileSync(outputPath, binaryData);
openImage(outputPath);
})
.catch((err) => {
logger.error(`Error displaying farm: ${err}`);
});
}

private getDisplayFarmDimensions(): DisplayFarmDimensions {
Expand Down

0 comments on commit 25bf466

Please sign in to comment.