Skip to content

Commit c0e5584

Browse files
committed
Remove unused mime type in readFile
1 parent aceecbf commit c0e5584

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/powersync_core/lib/src/attachments/local_storage.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ abstract interface class LocalStorage {
3030
/// Retrieves binary data stream from storage at the specified file path
3131
///
3232
/// [filePath] - Path of the file to read
33-
/// [mediaType] - Optional MIME type of the data
33+
///
3434
/// Returns a stream of binary data
35-
Stream<Uint8List> readFile(String filePath, {String? mediaType});
35+
Stream<Uint8List> readFile(String filePath);
3636

3737
/// Deletes a file at the specified path
3838
///
@@ -79,7 +79,7 @@ final class _InMemoryStorage implements LocalStorage {
7979
Future<void> initialize() async {}
8080

8181
@override
82-
Stream<Uint8List> readFile(String filePath, {String? mediaType}) {
82+
Stream<Uint8List> readFile(String filePath) {
8383
return switch (content[_keyForPath(filePath)]) {
8484
null =>
8585
Stream.error('file at $filePath does not exist in in-memory storage'),

0 commit comments

Comments
 (0)