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:
@ -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 = []
|
||||
|
Reference in New Issue
Block a user