diff options
Diffstat (limited to 'internal/command')
-rw-r--r-- | internal/command/lfsauthenticate/lfsauthenticate.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/command/lfsauthenticate/lfsauthenticate.go b/internal/command/lfsauthenticate/lfsauthenticate.go index 2aaac2a..9cf415b 100644 --- a/internal/command/lfsauthenticate/lfsauthenticate.go +++ b/internal/command/lfsauthenticate/lfsauthenticate.go @@ -18,12 +18,6 @@ const ( uploadOperation = "upload" ) -type Command struct { - Config *config.Config - Args *commandargs.Shell - ReadWriter *readwriter.ReadWriter -} - type PayloadHeader struct { Auth string `json:"Authorization"` } @@ -65,21 +59,6 @@ func (c *Command) Execute() error { return nil } -func actionFromOperation(operation string) (commandargs.CommandType, error) { - var action commandargs.CommandType - - switch operation { - case downloadOperation: - action = commandargs.UploadPack - case uploadOperation: - action = commandargs.ReceivePack - default: - return "", disallowedcommand.Error - } - - return action, nil -} - func (c *Command) verifyAccess(action commandargs.CommandType, repo string) (*accessverifier.Response, error) { cmd := accessverifier.Command{c.Config, c.Args, c.ReadWriter} |