mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Fix error
This commit is contained in:
parent
da16d6f4d7
commit
7e6169dc03
1 changed files with 1 additions and 4 deletions
|
@ -281,6 +281,7 @@ func (c *Connection) runClient() error {
|
||||||
|
|
||||||
if c.IsSender {
|
if c.IsSender {
|
||||||
// TODO: Add confirmation
|
// TODO: Add confirmation
|
||||||
|
fmt.Println("File sent.")
|
||||||
} else { // Is a Receiver
|
} else { // Is a Receiver
|
||||||
if notPresent {
|
if notPresent {
|
||||||
fmt.Println("Sender/Code not present")
|
fmt.Println("Sender/Code not present")
|
||||||
|
@ -316,10 +317,6 @@ func (c *Connection) runClient() error {
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("\nReceived file written to %s", c.File.Name)
|
fmt.Printf("\nReceived file written to %s", c.File.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
fmt.Println("File sent.")
|
|
||||||
// TODO: Add confirmation
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue