mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Fix linter warnings & set fixed linter version (#21852)
This commit is contained in:
parent
1176e0823e
commit
1286aac411
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ fmt:
|
||||||
lint-install:
|
lint-install:
|
||||||
ifeq (,$(wildcard test -f bin/golangci-lint))
|
ifeq (,$(wildcard test -f bin/golangci-lint))
|
||||||
@echo " > Installing golint"
|
@echo " > Installing golint"
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.45.2/install.sh | sh -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
lint: lint-install
|
lint: lint-install
|
||||||
|
|
|
@ -43,7 +43,7 @@ type (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Default is a configuration instance.
|
// Default is a configuration instance.
|
||||||
var Default = Config{} // nolint:gochecknoglobals // config must be global
|
var Default = Config{} //nolint:gochecknoglobals // config must be global
|
||||||
|
|
||||||
// SetConfig reads a config file and returs an initialized config instance.
|
// SetConfig reads a config file and returs an initialized config instance.
|
||||||
func SetConfig(confPath string) error {
|
func SetConfig(confPath string) error {
|
||||||
|
|
|
@ -75,7 +75,7 @@ func (s *Service) FixLogo(f *file.AssetFile) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
err = validation.ValidateLogoFileSize(f.Path())
|
err = validation.ValidateLogoFileSize(f.Path())
|
||||||
if err != nil { // nolint:staticcheck
|
if err != nil { //nolint:staticcheck
|
||||||
// TODO: Compress images.
|
// TODO: Compress images.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user