Skip to content

Commit d0be2f3

Browse files
committed
staticcheck: fix S1021: merge variable declaration with assignment on next line
Signed-off-by: Sumner Evans <[email protected]>
1 parent 7f1ed46 commit d0be2f3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: go-imports
1515
exclude: "pb\\.go$"
1616
- id: go-vet-mod
17-
- id: go-staticcheck
17+
- id: go-staticcheck-mod
1818
# TODO: reenable this and fix all the problems
1919

2020
- repo: https://github.com/beeper/pre-commit-go

portal.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ func (portal *Portal) getBridgeInfo() (string, CustomBridgeInfoContent) {
305305
AvatarURL: portal.AvatarURL.CUString(),
306306
},
307307
}
308-
var bridgeInfoStateKey string
309-
bridgeInfoStateKey = fmt.Sprintf("fi.mau.signal://signal/%s", portal.ChatID)
308+
bridgeInfoStateKey := fmt.Sprintf("fi.mau.signal://signal/%s", portal.ChatID)
310309
bridgeInfo.Channel.ExternalURL = fmt.Sprintf("https://signal.me/#p/%s", portal.ChatID)
311310
var roomType string
312311
if portal.IsPrivateChat() {

0 commit comments

Comments
 (0)