From bb3133d078c876723ed6bf217a980613b05403be Mon Sep 17 00:00:00 2001 From: Igor Drozdov Date: Thu, 2 Jul 2020 12:20:11 +0000 Subject: Test merge request 2 --- internal/command/lfsauthenticate/lfsauthenticate.go | 21 --------------------- 1 file changed, 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} -- cgit v1.2.1