Skip to content

Commit

Permalink
Fix comments from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Sep 26, 2022
1 parent 7102905 commit e6f0065
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions generator/test/test_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Future<dynamic> generatorTestBuilder(String directoryName, String inputFileName,

Future<Map<String, Object>> getInputFileAsset(String inputFilePath) async {
var key = 'pkg|$inputFilePath';
String inputContent = await File(inputFilePath).readFileAsDartCode();
String inputContent = await File(inputFilePath).readAsDartCode();
return {key: inputContent};
}

Expand Down Expand Up @@ -179,7 +179,7 @@ class LinesEqualsMatcher extends Matcher {
Future<Map<String, Object>> getExpectedFileAsset(String inputFilePath, String expectedFilePath) async {
var key = 'pkg|${_path.setExtension(inputFilePath, '.realm_objects.g.part')}';
return {
key: myersDiff(await File(expectedFilePath).readFileAsDartCode()),
key: myersDiff(await File(expectedFilePath).readAsDartCode()),
};
}

Expand All @@ -195,7 +195,7 @@ extension FileEx on File {
return LineSplitter.split(content).join('\n');
}

Future<String> readFileAsDartCode() async {
Future<String> readAsDartCode() async {
final content = await readAsString(encoding: utf8);
final formatter = DartFormatter(lineEnding: '\n');
return formatter.format(content);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/realm_property.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class SchemaProperty {
/// `true` if the property is a primary key.
bool get primaryKey;

/// `true` if the property is a primary key.
/// `true` if the property is indexed.
bool get indexed;

/// Defines the [Realm] collection type if this property is a collection.
Expand Down

0 comments on commit e6f0065

Please sign in to comment.