chore: lint

This commit is contained in:
2025-11-26 21:13:10 +03:00
parent 1e2b717ce8
commit 0fed9a2681
6 changed files with 25 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ type browserLauncherImpl struct {
// OpenAuto implements BrowserLauncher.
func (b *browserLauncherImpl) OpenAuto(url string) error {
if (b.useCustomCommand) {
if b.useCustomCommand {
return b.OpenCustom(url)
} else {
return b.OpenDefault(url)

View File

@@ -82,7 +82,14 @@ func (q *qrminatorImpl) UpdateConfig(string) error {
panic("unimplemented")
}
func NewQrminator(cfg *config.Config, log *logger.Logger, capt screencapturer.ScreenCapturer, vis vision.Vision, val linkvalidator.LinkValidator, launch browserlauncher.BrowserLauncher) Qrminator {
func NewQrminator(
cfg *config.Config,
log *logger.Logger,
capt screencapturer.ScreenCapturer,
vis vision.Vision,
val linkvalidator.LinkValidator,
launch browserlauncher.BrowserLauncher,
) Qrminator {
return &qrminatorImpl{
config: cfg,
log: log,

View File

@@ -19,9 +19,7 @@
package ui
import (
"github.com/gotk3/gotk3/gtk"
)
import "github.com/gotk3/gotk3/gtk"
func NewBuilder() (*gtk.Builder, error) {