Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: pkg/analysis_server/lib/src/services/index/store/split_store.dart

Issue 1521883002: Fix lints: unnecessary_brace_in_string_interp (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/index/store/split_store.dart
diff --git a/pkg/analysis_server/lib/src/services/index/store/split_store.dart b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
index 85dedd212c3a6f4c29544bf6245ed680322baa7f..2e19c375564228ae721f15feb68b0216d65f0ddd 100644
--- a/pkg/analysis_server/lib/src/services/index/store/split_store.dart
+++ b/pkg/analysis_server/lib/src/services/index/store/split_store.dart
@@ -168,7 +168,7 @@ class DartUnitIndexObjectManager extends IndexObjectManager {
String unitName = unit.fullName;
int libraryNameIndex = site.encodeString(libraryName);
int unitNameIndex = site.encodeString(unitName);
- return 'DartUnitElement_${libraryNameIndex}_${unitNameIndex}.index';
+ return 'DartUnitElement_${libraryNameIndex}_$unitNameIndex.index';
}
void _recordLibraryWithUnit(
@@ -271,7 +271,7 @@ class FileNodeManager implements NodeManager {
_DataInputStream stream = new _DataInputStream(bytes);
return _readNode(stream);
}).catchError((exception, stackTrace) {
- _logger.logError('Exception during reading index file ${name}',
+ _logger.logError('Exception during reading index file $name',
new CaughtException(exception, stackTrace));
});
}
@@ -305,7 +305,7 @@ class FileNodeManager implements NodeManager {
return _fileManager.write(name, bytes);
});
}).catchError((exception, stackTrace) {
- _logger.logError('Exception during reading index file ${name}',
+ _logger.logError('Exception during reading index file $name',
new CaughtException(exception, stackTrace));
});
}
@@ -350,7 +350,7 @@ class FileNodeManager implements NodeManager {
int version = stream.readInt();
if (version != _VERSION) {
throw new StateError(
- 'Version ${_VERSION} expected, but ${version} found.');
+ 'Version $_VERSION expected, but $version found.');
}
}
// context

Powered by Google App Engine
This is Rietveld 408576698