mirror of https://github.com/schollz/croc.git
Fix error
This commit is contained in:
parent
da16d6f4d7
commit
7e6169dc03
|
@ -281,6 +281,7 @@ func (c *Connection) runClient() error {
|
|||
|
||||
if c.IsSender {
|
||||
// TODO: Add confirmation
|
||||
fmt.Println("File sent.")
|
||||
} else { // Is a Receiver
|
||||
if notPresent {
|
||||
fmt.Println("Sender/Code not present")
|
||||
|
@ -316,10 +317,6 @@ func (c *Connection) runClient() error {
|
|||
} else {
|
||||
fmt.Printf("\nReceived file written to %s", c.File.Name)
|
||||
}
|
||||
|
||||
} else {
|
||||
fmt.Println("File sent.")
|
||||
// TODO: Add confirmation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue