diff --git a/pkg/runfileconfig/run_file_config_parser.go b/pkg/runfileconfig/run_file_config_parser.go index 207bfd2fa..7d536a8bb 100644 --- a/pkg/runfileconfig/run_file_config_parser.go +++ b/pkg/runfileconfig/run_file_config_parser.go @@ -212,9 +212,7 @@ func (a *RunFileConfig) resolvePathToAbsAndValidate(baseDir string, paths ...*st return err } absPath := utils.GetAbsPath(baseDir, *path) - if err != nil { - return err - } + *path = absPath if err = utils.ValidateFilePath(*path); err != nil { return err diff --git a/pkg/standalone/publish.go b/pkg/standalone/publish.go index 30ae646fe..17ba8a3b0 100644 --- a/pkg/standalone/publish.go +++ b/pkg/standalone/publish.go @@ -69,7 +69,7 @@ func (s *Standalone) Publish(publishAppID, pubsubName, topic string, payload []b // Detect publishing with CloudEvents envelope. var cloudEvent map[string]interface{} - if json.Unmarshal(payload, &cloudEvent); err == nil { + if err := json.Unmarshal(payload, &cloudEvent); err == nil { _, hasID := cloudEvent["id"] _, hasSource := cloudEvent["source"] _, hasSpecVersion := cloudEvent["specversion"]