Skip to content

Commit

Permalink
remove switch statement for ab protocol (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens authored Oct 22, 2020
1 parent c8b75e9 commit e75aa1e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import io.airbyte.workers.process.AirbyteIntegrationLauncher;
import io.airbyte.workers.process.IntegrationLauncher;
import io.airbyte.workers.process.ProcessBuilderFactory;
import io.airbyte.workers.process.SingerIntegrationLauncher;
import io.airbyte.workers.protocols.airbyte.AirbyteMessageTracker;
import io.airbyte.workers.protocols.airbyte.DefaultAirbyteDestination;
import io.airbyte.workers.protocols.airbyte.DefaultAirbyteSource;
Expand Down Expand Up @@ -143,11 +142,7 @@ private WorkerRun createSyncWorker(JobSyncConfig config, Path jobRoot) {
}

private IntegrationLauncher createLauncher(final String image) {
return isAirbyteProtocol(image) ? new AirbyteIntegrationLauncher(image, pbf) : new SingerIntegrationLauncher(image, pbf);
}

private boolean isAirbyteProtocol(final String image) {
return image != null && image.contains("abprotocol");
return new AirbyteIntegrationLauncher(image, pbf);
}

private static StandardCheckConnectionInput getCheckConnectionInput(JobCheckConnectionConfig config) {
Expand Down

0 comments on commit e75aa1e

Please sign in to comment.