Fix deadcode

This commit is contained in:
Mark Sagi-Kazar 2019-12-06 12:41:03 +01:00 committed by Márk Sági-Kazár
parent 7b5adba788
commit 29bb3ee94f
2 changed files with 0 additions and 6 deletions

View file

@ -11,8 +11,6 @@ linters:
- maligned - maligned
# TODO: fix me # TODO: fix me
- deadcode
- unused
- wsl - wsl
- golint - golint
- stylecheck - stylecheck

View file

@ -1368,7 +1368,6 @@ func (v *Viper) SafeWriteConfigAs(filename string) error {
return v.writeConfig(filename, false) return v.writeConfig(filename, false)
} }
func writeConfig(filename string, force bool) error { return v.writeConfig(filename, force) }
func (v *Viper) writeConfig(filename string, force bool) error { func (v *Viper) writeConfig(filename string, force bool) error {
jww.INFO.Println("Attempting to write configuration to file.") jww.INFO.Println("Attempting to write configuration to file.")
ext := filepath.Ext(filename) ext := filepath.Ext(filename)
@ -1486,9 +1485,6 @@ func (v *Viper) unmarshalReader(in io.Reader, c map[string]interface{}) error {
} }
// Marshal a map into Writer. // Marshal a map into Writer.
func marshalWriter(f afero.File, configType string) error {
return v.marshalWriter(f, configType)
}
func (v *Viper) marshalWriter(f afero.File, configType string) error { func (v *Viper) marshalWriter(f afero.File, configType string) error {
c := v.AllSettings() c := v.AllSettings()
switch configType { switch configType {