Skip to content

Commit fc4918a

Browse files
Merge pull request #624 from appwrite/lohanidamodar-patch-1
2 parents 6d2c065 + baf1bae commit fc4918a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templates/dart/lib/src/client_io.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class ClientIO extends ClientBase with ClientMixin {
153153
}
154154

155155
while (offset < size) {
156-
var chunk;
156+
List<int> chunk = [];
157157
if (file.bytes != null) {
158158
final end = min(offset + CHUNK_SIZE-1, size-1);
159159
chunk = file.bytes!.getRange(offset, end).toList();

templates/flutter/.travis.yml.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ install:
2424
deploy:
2525
provider: script
2626
skip_cleanup: true
27-
script: dart format ./lib/ && flutter pub publish -f
27+
script: cd $TRAVIS_BUILD_DIR && dart format ./lib/ && flutter pub publish -f
2828
on:
2929
tags: true

templates/flutter/lib/src/client_io.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class ClientIO extends ClientBase with ClientMixin, ClientOfflineMixin {
320320
}
321321

322322
while (offset < size) {
323-
var chunk;
323+
List<int> chunk = [];
324324
if (file.bytes != null) {
325325
final end = min(offset + CHUNK_SIZE - 1, size - 1);
326326
chunk = file.bytes!.getRange(offset, end).toList();

0 commit comments

Comments
 (0)