Skip to content

Commit d022df3

Browse files
committed
style: use backend.ContainerSnippet constant instead of string literal
1 parent da2799b commit d022df3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdl/backend/mpr/page_mutator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func (m *mprPageMutator) DropVariable(name string) error {
254254
}
255255

256256
func (m *mprPageMutator) SetLayout(newLayout string, paramMappings map[string]string) error {
257-
if m.containerType == "snippet" {
257+
if m.containerType == backend.ContainerSnippet {
258258
return fmt.Errorf("SET Layout is not supported for snippets")
259259
}
260260

0 commit comments

Comments
 (0)