Skip to content

Commit

Permalink
fix: check for empty env var (#961)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin and vsukhin authored Feb 11, 2022
1 parent cd8145c commit a912ddd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/app/api/v1/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ func getFilterFromRequest(c *fiber.Ctx) result.Filter {
func (s TestKubeAPI) loadDefaultExecutors(namespace, data string) error {
var executors []testkube.ExecutorDetails

if data == "" {
return nil
}

dataDecoded, err := base64.StdEncoding.DecodeString(data)
if err != nil {
return err
Expand Down

0 comments on commit a912ddd

Please sign in to comment.