Fixing linter errors in commands.go
This commit is contained in:
parent
74288265f8
commit
b7fcab2ed8
2 changed files with 4 additions and 3 deletions
|
@ -36,8 +36,8 @@ func UploadFile(c Client, filename string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// SendAsciiPic sends an image as ascii text to the client.
|
// SendASCIIPic sends an image as ascii text to the client.
|
||||||
func SendAsciiPic(c Client, path string) error {
|
func SendASCIIPic(c Client, path string) error {
|
||||||
f, err := os.Open(MakePathFromStringStack(c.Stack()) + path)
|
f, err := os.Open(MakePathFromStringStack(c.Stack()) + path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
@ -159,6 +159,7 @@ func ChangeDirectoryCommand(c Client, directory string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ShowHelp writes the help text to the client.
|
||||||
func ShowHelp(c Client) error {
|
func ShowHelp(c Client) error {
|
||||||
var helpText = `
|
var helpText = `
|
||||||
The available commands are:
|
The available commands are:
|
||||||
|
|
|
@ -53,7 +53,7 @@ func ProcessInput(c Client, text string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the file
|
// Get the file
|
||||||
err = SendAsciiPic(c, commands[1])
|
err = SendASCIIPic(c, commands[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &InputError{thisCommand, err}
|
return &InputError{thisCommand, err}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue