Skip to content

Commit

Permalink
fix: Ignore empty editor definitions (#1892)
Browse files Browse the repository at this point in the history
* fix: Ignore empty editor definitions

Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha authored Sep 5, 2024
1 parent 456d441 commit 9c3c4d9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/deploy/editors-definitions/editors_definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func readEditorDefinitions() (map[string][]byte, error) {
continue
}

if len(devfile) == 0 {
continue
}

updateEditorDefinitionImages(devfile)
editorContent, err = yaml.Marshal(devfile)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Copyright (c) 2019-2024 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#

dasf sadf
sadf as
sadf asdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# Copyright (c) 2019-2024 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Red Hat, Inc. - initial API and implementation
#

0 comments on commit 9c3c4d9

Please sign in to comment.