Skip to content

Commit

Permalink
fix analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Oct 31, 2024
1 parent 3faf394 commit 94854dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/objective_c/test/setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const objCFlags = [
];
final outputFile = _resolve('test/objective_c.dylib');

Uri _repoDir = () {
Uri path = Platform.script;
final _repoDir = () {
var path = Platform.script;
while (path.pathSegments.isNotEmpty) {
path = path.resolve('..');
if (Directory(path.resolve('.git').toFilePath()).existsSync()) {
Expand All @@ -44,7 +44,7 @@ Uri _repoDir = () {
}
throw Exception("Can't find .git dir above ${Platform.script}");
}();
Uri _pkgDir = _repoDir.resolve('pkgs/objective_c/');
final _pkgDir = _repoDir.resolve('pkgs/objective_c/');
String _resolve(String file) => _pkgDir.resolve(file).toFilePath();

void _runClang(List<String> flags, String output) {
Expand Down

0 comments on commit 94854dd

Please sign in to comment.