Fixing linter errors in commands.go

This commit is contained in:
Denis-Cosmin Nutiu 2017-12-16 22:46:55 +02:00
parent 74288265f8
commit b7fcab2ed8
2 changed files with 4 additions and 3 deletions

View file

@ -36,8 +36,8 @@ func UploadFile(c Client, filename string) error {
return nil
}
// SendAsciiPic sends an image as ascii text to the client.
func SendAsciiPic(c Client, path string) error {
// SendASCIIPic sends an image as ascii text to the client.
func SendASCIIPic(c Client, path string) error {
f, err := os.Open(MakePathFromStringStack(c.Stack()) + path)
if err != nil {
log.Println(err)
@ -159,6 +159,7 @@ func ChangeDirectoryCommand(c Client, directory string) error {
return err
}
// ShowHelp writes the help text to the client.
func ShowHelp(c Client) error {
var helpText = `
The available commands are:

View file

@ -53,7 +53,7 @@ func ProcessInput(c Client, text string) error {
}
// Get the file
err = SendAsciiPic(c, commands[1])
err = SendASCIIPic(c, commands[1])
if err != nil {
return &InputError{thisCommand, err}
}