Skip to content

Commit 18065fb

Browse files
committed
Fix comments for gofmt 1.19
1 parent f5f8d59 commit 18065fb

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

daemon/watchdog.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
// It returns one of the following:
3131
// (0, nil) - watchdog isn't enabled or we aren't the watched PID.
3232
// (0, err) - an error happened (e.g. error converting time).
33-
// (time, nil) - watchdog is enabled and we can send ping.
34-
// time is delay before inactive service will be killed.
33+
// (time, nil) - watchdog is enabled and we can send ping. time is delay
34+
// before inactive service will be killed.
3535
func SdWatchdogEnabled(unsetEnvironment bool) (time.Duration, error) {
3636
wusec := os.Getenv("WATCHDOG_USEC")
3737
wpid := os.Getenv("WATCHDOG_PID")

internal/dlopen/dlopen_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
1415
package dlopen
1516

1617
import (

unit/escape.go

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ const (
2727
)
2828

2929
// If isPath is true:
30-
// We remove redundant '/'s, the leading '/', and trailing '/'.
31-
// If the result is empty, a '/' is inserted.
30+
//
31+
// We remove redundant '/'s, the leading '/', and trailing '/'.
32+
// If the result is empty, a '/' is inserted.
3233
//
3334
// We always:
34-
// Replace the following characters with `\x%x`:
35-
// Leading `.`
36-
// `-`, `\`, and anything not in this set: `:-_.\[0-9a-zA-Z]`
37-
// Replace '/' with '-'.
35+
//
36+
// Replace the following characters with `\x%x`: Leading `.`,
37+
// `-`, `\`, and anything not in this set: `:-_.\[0-9a-zA-Z]`
38+
// Replace '/' with '-'.
3839
func escape(unescaped string, isPath bool) string {
3940
e := []byte{}
4041
inSlashes := false
@@ -69,11 +70,13 @@ func escape(unescaped string, isPath bool) string {
6970
}
7071

7172
// If isPath is true:
72-
// We always return a string beginning with '/'.
73+
//
74+
// We always return a string beginning with '/'.
7375
//
7476
// We always:
75-
// Replace '-' with '/'.
76-
// Replace `\x%x` with the value represented in hex.
77+
//
78+
// Replace '-' with '/'.
79+
// Replace `\x%x` with the value represented in hex.
7780
func unescape(escaped string, isPath bool) string {
7881
u := []byte{}
7982
for i := 0; i < len(escaped); i++ {

0 commit comments

Comments
 (0)