mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Remove unnecessary blank imports (round 2) (#23310)
I mistakenly assumed that those packages are naturally imported.
And also atleast one test would have broken.
None of them are true. :)
So we just import it again at a better place
This reverts commit 30a053314b
.
```release-note
NONE
```
This commit is contained in:
parent
2d61ec0b1d
commit
9f1796f98b
@ -1,9 +0,0 @@
|
|||||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
||||||
// See LICENSE.txt for license information.
|
|
||||||
|
|
||||||
package imports
|
|
||||||
|
|
||||||
import (
|
|
||||||
// Needed to ensure the init() method in the FocalBoard product is run.
|
|
||||||
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
|
|
||||||
)
|
|
@ -1,9 +0,0 @@
|
|||||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
||||||
// See LICENSE.txt for license information.
|
|
||||||
|
|
||||||
package imports
|
|
||||||
|
|
||||||
import (
|
|
||||||
// Needed to ensure the init() method in the Playbooks product is run.
|
|
||||||
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
|
|
||||||
)
|
|
@ -14,6 +14,10 @@ import (
|
|||||||
|
|
||||||
// Enterprise Imports
|
// Enterprise Imports
|
||||||
_ "github.com/mattermost/mattermost-server/server/v8/channels/imports"
|
_ "github.com/mattermost/mattermost-server/server/v8/channels/imports"
|
||||||
|
|
||||||
|
// Blank imports for each product to register themselves
|
||||||
|
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
|
||||||
|
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user