fix(app): format using gofumpt
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-27 23:03:09 +02:00
parent c79f4e811b
commit b28dae3bd0
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
4 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,6 @@
func TestNixFlake_GosrcVersionStringEquivalence(t *testing.T) {
want := GetShortVersion()
fData, err := os.ReadFile("../flake.nix")
if err != nil {
t.Errorf("Failed to open flake.nix: %q", err)
}

View File

@ -24,8 +24,10 @@ type project struct {
license string
}
var authorInfo = "Adam Mirre <a_mirre at utb dot cz>"
var projectURL = "https://git.dotya.ml/wanderer/go-xkcdreader"
var (
authorInfo = "Adam Mirre <a_mirre at utb dot cz>"
projectURL = "https://git.dotya.ml/wanderer/go-xkcdreader"
)
//go:embed assets/standard-license-header.txt
var l string

View File

@ -137,7 +137,6 @@ func makeBrowseUI() *fyne.Container {
// get img from filesystem, resize it and return as *canvas.Image.
func getImg(imgPath string) *canvas.Image {
_, err := os.Stat(imgPath)
// properly handle error, perhaps panic?...don't panic, I know..
if err != nil {
log.Println("failed to read file " + imgPath)

View File

@ -30,7 +30,6 @@ func TestToolbar(t *testing.T) {
}
func TestTabs(t *testing.T) {
// wantTabsNum := 2
// gotTabs := makeTabs()
//