mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
resources: Replace error handling in GetRemote with try (note)
Closes #13216
This commit is contained in:
@@ -61,10 +61,6 @@ type nopPage int
|
||||
|
||||
var noOpPathInfo = media.DefaultPathParser.Parse(files.ComponentFolderContent, "no-op.md")
|
||||
|
||||
func (p *nopPage) Err() resource.ResourceError {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *nopPage) Aliases() []string {
|
||||
return nil
|
||||
}
|
||||
|
@@ -111,10 +111,6 @@ type testPage struct {
|
||||
sectionEntries []string
|
||||
}
|
||||
|
||||
func (p *testPage) Err() resource.ResourceError {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *testPage) Aliases() []string {
|
||||
panic("testpage: not implemented")
|
||||
}
|
||||
|
Reference in New Issue
Block a user