Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Should fix golint check error #2166

Closed
niusmallnan opened this issue Dec 6, 2017 · 0 comments
Closed

Should fix golint check error #2166

niusmallnan opened this issue Dec 6, 2017 · 0 comments
Assignees
Milestone

Comments

@niusmallnan
Copy link
Contributor

cmd/control/config.go:163:2: redundant if ...; err != nil check, just return error instead.
cmd/control/install.go:219:5: redundant if ...; err != nil check, just return error instead.
cmd/control/install.go:311:4: redundant if ...; err != nil check, just return error instead.
cmd/control/install.go:694:2: redundant if ...; err != nil check, just return error instead.
cmd/control/tlsconf.go:79:2: redundant if ...; err != nil check, just return error instead.
config/cloudinit/initialize/workspace.go:32:2: redundant if ...; err != nil check, just return error instead.
dfs/scratch.go:218:2: redundant if ...; err != nil check, just return error instead
dfs/scratch.go:462:2: redundant if ...; err != nil check, just return error instead.
dfs/scratch.go:590:2: redundant if ...; err != nil check, just return error instead.
hostname/hostname.go:26:2: redundant if ...; err != nil check, just return error instead.
hostname/hostname.go:58:2: redundant if ...; err != nil check, just return error instead.
netconf/netconf_linux.go:397:3: redundant if ...; err != nil check, just return error instead.
util/util.go:90:2: redundant if ...; err != nil check, just return error instead.
niusmallnan added a commit to niusmallnan/os that referenced this issue Dec 6, 2017
@niusmallnan niusmallnan self-assigned this Dec 11, 2017
@niusmallnan niusmallnan added this to the v1.1.1 milestone Dec 11, 2017
niusmallnan added a commit that referenced this issue Jan 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant