Skip to content

Commit d2771f0

Browse files
fix: return error on unknown plugin type
1 parent 86ec81f commit d2771f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/plugin/grpc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ func (p *GRPCWrapper) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) erro
4141
updater.RegisterFilesUpdaterPluginServer(s, &updater.FilesUpdaterServer{
4242
Impl: p.Impl.(updater.FilesUpdater),
4343
})
44+
default:
45+
return errors.New("unknown plugin type")
4446
}
45-
4647
return nil
4748
}
4849

0 commit comments

Comments
 (0)