Skip to content

Commit

Permalink
style: remove redundant local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonny Browning committed Oct 12, 2022
1 parent bc299ab commit 8ff3ecb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ locals {
# For GCS pipeline spec "rest_of_path" = GCS object name
pipeline_spec_path = regex("^(?P<scheme>(?P<http_scheme>https\\:\\/\\/)|(?P<gs_scheme>gs\\:\\/\\/))?(?P<root>[\\w.-]*)?(?P<rest_of_path_including_slash>(?P<slash>\\/)(?P<rest_of_path>.*))*", var.pipeline_spec_path)

pipeline_spec_path_is_gcs_path = local.pipeline_spec_path.scheme == "gs://"
pipeline_spec_path_is_ar_path = local.pipeline_spec_path.scheme == "https://"
pipeline_spec_path_is_local_path = local.pipeline_spec_path.scheme == null
pipeline_spec_path_is_gcs_path = local.pipeline_spec_path.scheme == "gs://"
pipeline_spec_path_is_ar_path = local.pipeline_spec_path.scheme == "https://"

# Load the pipeline spec from YAML/JSON
# If it's a GCS path, load it from the GCS object content
Expand Down

0 comments on commit 8ff3ecb

Please sign in to comment.