Skip to content

Commit 2cca114

Browse files
committed
start/delete: error strings should not end with newline (revive)
delete.go:84:22: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) return fmt.Errorf("cannot delete container %s that is not stopped: %s\n", id, s) ^ start.go:51:22: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) return fmt.Errorf("cannot start a container in the %s state\n", status) ^ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 5bfd86c commit 2cca114

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ status of "ubuntu01" as "stopped" the following will delete resources held for
8181
if force {
8282
return killContainer(container)
8383
}
84-
return fmt.Errorf("cannot delete container %s that is not stopped: %s\n", id, s)
84+
return fmt.Errorf("cannot delete container %s that is not stopped: %s", id, s)
8585
}
8686

8787
return nil

start.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ your host.`,
4848
case libcontainer.Running:
4949
return errors.New("cannot start an already running container")
5050
default:
51-
return fmt.Errorf("cannot start a container in the %s state\n", status)
51+
return fmt.Errorf("cannot start a container in the %s state", status)
5252
}
5353
},
5454
}

0 commit comments

Comments
 (0)