Skip to content

Commit

Permalink
. r code was formatted.
Browse files Browse the repository at this point in the history
  • Loading branch information
yelmuratoff committed May 15, 2024
1 parent 65cec9e commit f992702
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/src/core/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ final class ApprovalUtils {
final int green = int.parse(hex.substring(2, 4), radix: 16);
final int blue = int.parse(hex.substring(4, 6), radix: 16);

final AnsiPen pen = AnsiPen()..rgb(r: red / 255, g: green / 255, b: blue / 255);
final AnsiPen pen = AnsiPen()
..rgb(r: red / 255, g: green / 255, b: blue / 255);
return pen;
}

Expand Down Expand Up @@ -53,8 +54,12 @@ final class ApprovalUtils {
static bool filesMatch(String approvedPath, String receivedPath) {
try {
// Read contents of the approved and received files
final approved = ApprovalUtils.readFile(path: approvedPath).replaceAll('\r\n', '\n').trim();
final received = ApprovalUtils.readFile(path: receivedPath).replaceAll('\r\n', '\n').trim();
final approved = ApprovalUtils.readFile(path: approvedPath)
.replaceAll('\r\n', '\n')
.trim();
final received = ApprovalUtils.readFile(path: receivedPath)
.replaceAll('\r\n', '\n')
.trim();

// Return true if contents of both files match exactly
return approved.compareTo(received) == 0;
Expand Down

0 comments on commit f992702

Please sign in to comment.