Skip to content

Commit

Permalink
fix: dm npe (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceLiZhixin authored Dec 7, 2022
1 parent 140911b commit cf02f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/yurthub/kubernetes/meta/restmapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func NewDefaultRESTMapperFromScheme() *meta.DefaultRESTMapper {
}

func NewRESTMapperManager(baseDir string) (*RESTMapperManager, error) {
var dm map[schema.GroupVersionResource]schema.GroupVersionKind
dm := make(map[schema.GroupVersionResource]schema.GroupVersionKind)
cachedFilePath := filepath.Join(baseDir, CacheDynamicRESTMapperKey)
// Recover the mapping relationship between GVR and GVK from the hard disk
storage := fs.FileSystemOperator{}
Expand Down

0 comments on commit cf02f61

Please sign in to comment.