From 332b07fb1aeb374cf44f6711d4a4f0df59ae378c Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Wed, 16 Oct 2024 12:07:39 +0200 Subject: [PATCH] Update commands/transform.go Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com> --- commands/transform.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/transform.go b/commands/transform.go index f5192b47..b01dd3d6 100644 --- a/commands/transform.go +++ b/commands/transform.go @@ -93,8 +93,8 @@ func transformSlackCmdF(cmd *cobra.Command, args []string) error { } } - profilePicturesDir := path.Join(attachmentsDir, "profile_pictures") if !skipAttachments { + profilePicturesDir := path.Join(attachmentsDir, "profile_pictures") if fileInfo, err := os.Stat(profilePicturesDir); os.IsNotExist(err) { if createErr := os.MkdirAll(profilePicturesDir, 0755); createErr != nil { return createErr