Skip to content

Commit

Permalink
addressing some missed PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmana committed Oct 23, 2024
1 parent ed2f263 commit ec936ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tool/lib/license_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ class LicenseHeader {
}

/// Returns a copy of the given [file] with the [existingHeader] replaced by
/// the [replacementHeader]. Reads and writes the entire file contents all
/// at once, so performance may degrade for large files.
/// the [replacementHeader].
///
/// Reads and writes the entire file contents all at once, so performance may
/// degrade for large files.
File rewriteLicenseHeader({
required File file,
required String existingHeader,
Expand Down Expand Up @@ -284,6 +286,7 @@ class LicenseHeader {
file.writeAsStringSync(
rewrittenFile.readAsStringSync(),
mode: FileMode.writeOnly,
flush: true,
);
updatedPaths.add(file.path);
}
Expand Down

0 comments on commit ec936ca

Please sign in to comment.