1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v fmt: fix extra space for lock/rlock without expressions (#16103)

This commit is contained in:
Makhnev Petr
2022-10-19 13:18:21 +04:00
committed by GitHub
parent 026fccd373
commit 2f3c4c6d91
7 changed files with 116 additions and 11 deletions

View File

@ -446,7 +446,7 @@ fn parse_uri(url string) !&Uri {
// set_state sets current state of the websocket connection
fn (mut ws Client) set_state(state State) {
lock {
lock {
ws.state = state
}
}
@ -463,7 +463,7 @@ fn (ws Client) assert_not_connected() ! {
// reset_state resets the websocket and initialize default settings
fn (mut ws Client) reset_state() ! {
lock {
lock {
ws.state = .closed
ws.ssl_conn = ssl.new_ssl_conn()!
ws.flags = []