Skip to content

Commit

Permalink
pg_23079 remove replacing tabs at playground (#24285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malarg authored Nov 29, 2022
1 parent db54c84 commit 22dcacb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import '../../api/iis_workaround_channel.dart';
import '../../api/v1/api.pbgrpc.dart' as grpc;
import '../../models/sdk.dart';
import '../../util/pipeline_options.dart';
import '../../util/replace_incorrect_symbols.dart';
import '../models/check_status_response.dart';
import '../models/output_response.dart';
import '../models/run_code_error.dart';
Expand Down Expand Up @@ -101,7 +100,7 @@ class GrpcCodeClient implements CodeClient {
),
);

return _toOutputResponse(response.output);
return OutputResponse(output: response.output);
}

@override
Expand All @@ -115,10 +114,10 @@ class GrpcCodeClient implements CodeClient {
),
);

return _toOutputResponse(response.output);
return OutputResponse(output: response.output);
} catch (ex) {
print(ex);
return _toOutputResponse('');
return OutputResponse(output: '');
}
}

Expand All @@ -131,10 +130,10 @@ class GrpcCodeClient implements CodeClient {
grpc.GetLogsRequest(pipelineUuid: pipelineUuid),
);

return _toOutputResponse(response.output);
return OutputResponse(output: response.output);
} catch (ex) {
print(ex);
return _toOutputResponse('');
return OutputResponse(output: '');
}
}

Expand All @@ -146,7 +145,7 @@ class GrpcCodeClient implements CodeClient {
grpc.GetRunErrorRequest(pipelineUuid: pipelineUuid),
);

return _toOutputResponse(response.output);
return OutputResponse(output: response.output);
}

@override
Expand All @@ -157,7 +156,7 @@ class GrpcCodeClient implements CodeClient {
grpc.GetValidationOutputRequest(pipelineUuid: pipelineUuid),
);

return _toOutputResponse(response.output);
return OutputResponse(output: response.output);
}

@override
Expand All @@ -168,7 +167,7 @@ class GrpcCodeClient implements CodeClient {
grpc.GetPreparationOutputRequest(pipelineUuid: pipelineUuid),
);

return _toOutputResponse(response.output);
return OutputResponse(output: response.output);
}

@override
Expand All @@ -183,7 +182,7 @@ class GrpcCodeClient implements CodeClient {
return OutputResponse(output: response.graph);
} catch (ex) {
print(ex);
return _toOutputResponse('');
return OutputResponse(output: '');
}
}

Expand Down Expand Up @@ -249,8 +248,4 @@ class GrpcCodeClient implements CodeClient {
}
return RunCodeStatus.unspecified;
}

OutputResponse _toOutputResponse(String response) {
return OutputResponse(output: replaceIncorrectSymbols(response));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import '../../api/v1/api.pbgrpc.dart' as grpc;
import '../../models/category_with_examples.dart';
import '../../models/example_base.dart';
import '../../models/sdk.dart';
import '../../util/replace_incorrect_symbols.dart';
import '../complexity_grpc_extension.dart';
import '../models/get_default_precompiled_object_request.dart';
import '../models/get_precompiled_object_code_response.dart';
Expand Down Expand Up @@ -119,9 +118,7 @@ class GrpcExampleClient implements ExampleClient {
),
);

return GetPrecompiledObjectCodeResponse(
code: replaceIncorrectSymbols(response.code),
);
return GetPrecompiledObjectCodeResponse(code: response.code);
}

@override
Expand All @@ -135,9 +132,7 @@ class GrpcExampleClient implements ExampleClient {
),
);

return OutputResponse(
output: replaceIncorrectSymbols(response.output),
);
return OutputResponse(output: response.output);
} catch (ex) {
print(ex);
return OutputResponse(
Expand All @@ -157,9 +152,7 @@ class GrpcExampleClient implements ExampleClient {
),
);

return OutputResponse(
output: replaceIncorrectSymbols(response.output),
);
return OutputResponse(output: response.output);
} catch (ex) {
print(ex);
return OutputResponse(
Expand Down

This file was deleted.

0 comments on commit 22dcacb

Please sign in to comment.