Archived
build: Enable gometalinter "gosimple" check, improve build.go
This commit is contained in:
1 parent
47f22ff3e5
commit
d41c131364
19 files changed
+108
-130
No files matched your search
@@ -381,10 +381,8 @@ func (s *apiService) String() string {
|
||||
}
|
||||
|
||||
func (s *apiService) VerifyConfiguration(from, to config.Configuration) error {
|
||||
if _, err := net.ResolveTCPAddr("tcp", to.GUI.Address()); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
_, err := net.ResolveTCPAddr("tcp", to.GUI.Address())
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *apiService) CommitConfiguration(from, to config.Configuration) bool {
|
||||
|
||||
Reference in new issue
Block a user