Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
6da6e775
Unverified
Commit
6da6e775
authored
Jul 13, 2017
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin: fix plugin loading
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
b135a1fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
plugin/loader/load_linux.go
plugin/loader/load_linux.go
+3
-2
No files found.
plugin/loader/load_linux.go
View file @
6da6e775
...
...
@@ -56,11 +56,12 @@ func loadPlugin(fi string) ([]iplugin.Plugin, error) {
if
err
!=
nil
{
return
nil
,
err
}
log
.
Errorf
(
"plugins: %T"
,
pls
)
typePls
,
ok
:=
pls
.
([]
iplugin
.
Plugin
)
typePls
,
ok
:=
pls
.
(
*
[]
iplugin
.
Plugin
)
if
!
ok
{
return
nil
,
errors
.
New
(
"filed 'Plugins' didn't contain correct type"
)
}
return
typePls
,
nil
return
*
typePls
,
nil
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment