This commit is contained in:
thosakwe 2016-12-23 23:48:17 -05:00
parent d4d55d6a8f
commit e98a94640a

View file

@ -21,7 +21,7 @@ class KeyCommand extends Command {
changeSecret(File file, String secret) async { changeSecret(File file, String secret) async {
if (await file.exists()) { if (await file.exists()) {
bool foundSecret = false; bool foundSecret = false;
var sink = await file.openWrite(); var sink = await file.openWrite(mode: FileMode.APPEND);
await for (var chunk in await file.openRead().transform(UTF8.decoder)) { await for (var chunk in await file.openRead().transform(UTF8.decoder)) {
var lines = chunk.split('\n'); var lines = chunk.split('\n');