Skip to content

Commit 48d584d

Browse files
committed
[storage] add newline at end, format
1 parent abf23f8 commit 48d584d

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Deploy
22

3-
on: [push]
3+
on:
4+
push:
5+
paths-ignore:
6+
- "**.md"
47

58
jobs:
69
build:

go.mod

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
module github.com/bob-cd/local-logger
22

3-
go 1.24
3+
go 1.24.0
4+
5+
toolchain go1.24.6
46

57
require github.com/fsnotify/fsnotify v1.9.0
68

7-
require golang.org/x/sys v0.35.0 // indirect
9+
require golang.org/x/sys v0.36.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
22
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
3-
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
4-
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
3+
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
4+
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func put(w http.ResponseWriter, r *http.Request) {
9090
return
9191
}
9292

93-
_, err = log.WriteString("\n" + strings.TrimSpace(string(data)))
93+
_, err = log.WriteString(strings.TrimSpace(string(data)) + "\n")
9494
if err != nil {
9595
errOut(w, err)
9696
return

0 commit comments

Comments
 (0)