From 4ce7cee4eefc197cd294ad2a83edac7496a974d6 Mon Sep 17 00:00:00 2001 From: Maor Date: Tue, 25 Dec 2018 08:45:42 +0200 Subject: [PATCH] [skbn/s3] fix dirty state after fmt --- pkg/skbn/s3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/skbn/s3.go b/pkg/skbn/s3.go index 122ab9d..225114a 100644 --- a/pkg/skbn/s3.go +++ b/pkg/skbn/s3.go @@ -176,13 +176,13 @@ func getNewSession() (*session.Session, error) { awsConfig := &aws.Config{} region := "eu-central-1" - + if rg := os.Getenv("AWS_REGION"); rg != "" { region = rg } awsConfig.Region = aws.String(region) - + if endpoint := os.Getenv("AWS_S3_ENDPOINT"); endpoint != "" { awsConfig.Endpoint = aws.String(endpoint) }