mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 12:07:58 -06:00
chore: Cleanup code
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:developer' as dev;
|
|
||||||
import 'package:logger/logger.dart';
|
import 'package:logger/logger.dart';
|
||||||
|
|
||||||
final _newLine = Platform.lineTerminator;
|
final _newLine = Platform.lineTerminator;
|
||||||
@@ -50,10 +49,8 @@ class ParsedErrorLogMessage {
|
|||||||
while (!_errorEndPattern.hasMatch(log[currentLine])) {
|
while (!_errorEndPattern.hasMatch(log[currentLine])) {
|
||||||
errorText += log[currentLine] + _newLine;
|
errorText += log[currentLine] + _newLine;
|
||||||
currentLine++;
|
currentLine++;
|
||||||
assert(currentLine < log.length, "Error log message is not closed");
|
|
||||||
}
|
}
|
||||||
currentLine++;
|
currentLine++;
|
||||||
// dev.log("Parsing ${currentLine}/${log.length}");
|
|
||||||
if (log.length == currentLine) {
|
if (log.length == currentLine) {
|
||||||
return (currentLine, ParsedErrorLogMessage(error: errorText));
|
return (currentLine, ParsedErrorLogMessage(error: errorText));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user