Set 'bestPath' to empty by default instead of nil
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
3ccb5e8c65
commit
1aeb600750
|
@ -1,6 +1,7 @@
|
||||||
{{- $scratch := .scratch -}}
|
{{- $scratch := .scratch -}}
|
||||||
{{- $scratch.Set "bestLength" -1 -}}
|
{{- $scratch.Set "bestLength" -1 -}}
|
||||||
{{- $scratch.Set "bestUrl" (printf "%s/code/%s" .siteSourceUrl .path) -}}
|
{{- $scratch.Set "bestUrl" (printf "%s/code/%s" .siteSourceUrl .path) -}}
|
||||||
|
{{- $scratch.Set "bestPath" "" -}}
|
||||||
{{- $filePath := .path -}}
|
{{- $filePath := .path -}}
|
||||||
{{- range $path, $url := .submoduleLinks -}}
|
{{- range $path, $url := .submoduleLinks -}}
|
||||||
{{- $bestLength := $scratch.Get "bestLength" -}}
|
{{- $bestLength := $scratch.Get "bestLength" -}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user