Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Nov 23, 2020
1 parent 6069a18 commit dfc402a
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions core/communicator/base.go
Expand Up @@ -15,8 +15,6 @@ type relatedNetworkDeviceCommunicators struct {
sub NetworkDeviceCommunicator
}

type codeCommunicator availableCommunicatorFunctions

func (c *baseCommunicator) GetVendor(_ context.Context) (string, error) {
return "", tholaerr.NewNotImplementedError("function is not implemented for this communicator")
}
Expand Down
2 changes: 1 addition & 1 deletion core/communicator/device_class_to_code_communicator.go
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/inexio/thola/core/tholaerr"
)

func getCodeCommunicator(classIdentifier string, rel *relatedNetworkDeviceCommunicators) (codeCommunicator, error) {
func getCodeCommunicator(classIdentifier string, rel *relatedNetworkDeviceCommunicators) (availableCommunicatorFunctions, error) {
switch classIdentifier {
case "generic":
return &genericCommunicator{baseCommunicator{rel}}, nil
Expand Down
2 changes: 1 addition & 1 deletion core/communicator/network_device_communicator.go
Expand Up @@ -45,7 +45,7 @@ type availableUPSCommunicatorFunctions interface {

type networkDeviceCommunicator struct {
*relatedNetworkDeviceCommunicators
codeCommunicator codeCommunicator
codeCommunicator availableCommunicatorFunctions
deviceClassCommunicator *deviceClassCommunicator
}

Expand Down

0 comments on commit dfc402a

Please sign in to comment.