summaryrefslogtreecommitdiffstats
path: root/cmd/mattermost/commands/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mattermost/commands/config.go')
-rw-r--r--cmd/mattermost/commands/config.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/mattermost/commands/config.go b/cmd/mattermost/commands/config.go
index d9881b050..b8630b82f 100644
--- a/cmd/mattermost/commands/config.go
+++ b/cmd/mattermost/commands/config.go
@@ -90,9 +90,13 @@ func configSubpathCmdF(command *cobra.Command, args []string) error {
path, err := command.Flags().GetString("path")
if err != nil {
return errors.Wrap(err, "failed reading path")
- } else if path == "" {
+ }
+
+ if path == "" {
return utils.UpdateAssetsSubpathFromConfig(a.Config())
- } else if err := utils.UpdateAssetsSubpath(path); err != nil {
+ }
+
+ if err := utils.UpdateAssetsSubpath(path); err != nil {
return errors.Wrap(err, "failed to update assets subpath")
}