mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-19 14:49:48 +01:00
minorFix
This commit is contained in:
@@ -327,14 +327,14 @@ export class Repository {
|
||||
return TPromise.wrapError(localize('errorBuffer', "Can't open file from git"));
|
||||
}
|
||||
|
||||
return detectMimesFromStream(child.stdout, null).then(result =>
|
||||
isBinaryMime(result.mimes) ?
|
||||
return detectMimesFromStream(child.stdout, null).then(result => {
|
||||
return isBinaryMime(result.mimes) ?
|
||||
TPromise.wrapError<string>(<IFileOperationResult>{
|
||||
message: localize('fileBinaryError', "File seems to be binary and cannot be opened as text"),
|
||||
fileOperationResult: FileOperationResult.FILE_IS_BINARY
|
||||
}) :
|
||||
this.doBuffer(object)
|
||||
);
|
||||
this.doBuffer(object);
|
||||
});
|
||||
}
|
||||
|
||||
private doBuffer(object: string): TPromise<string> {
|
||||
|
||||
Reference in New Issue
Block a user