Skip to content

Commit fb34a02

Browse files
committed
Fixup comment.
Signed-off-by: Kurt Garloff <[email protected]>
1 parent 8f07260 commit fb34a02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cshash/hash.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package hash contains important functions of hash.
17+
// Package cshash contains important functions of hash.
1818
package cshash
1919

2020
import (
@@ -92,6 +92,9 @@ func GetHash(path string) (ReleaseHash, error) {
9292
releaseHash.ClusterAddonDir = hash
9393
case nodeImageDirName:
9494
releaseHash.NodeImageDir = hash
95+
default:
96+
// Should not happen
97+
return ReleaseHash{}, fmt.Errorf("unknown name type %s", entryPath)
9598
}
9699
} else if !entry.IsDir() && entry.Name() == clusterAddonValuesFileName {
97100
file, _ := os.Open(filepath.Clean(entryPath))

0 commit comments

Comments
 (0)