func (r *fileRepo) createPubKeyFile(addr hash.Hash) error {
	p := r.getPath(addr, keysFile)
	f, err := r.fs.Create(p)
	if err != nil {
		logrus.Errorf("Error while creating file %s: %s", p, err)
		return err
	}
	return f.Close()
}
// Create file because it doesn't exist yet
Create file because it doesn't exist yet
// Create file because it doesn ' t exist yet
func (r *fileRepo) createPubKeyFile(addr hash.Hash) error {
	p := r.getPath(addr, keysFile)
	f, err := r.fs.Create(p)
	if err != nil {
		logrus.Errorf("Error while creating file %s: %s", p, err)
		return err
	}
	return f.Close()
}
func ( r * fileRepo ) createPubKeyFile ( addr hash . Hash ) error { p := r . getPath ( addr , keysFile ) f , err := r . fs . Create ( p ) if err != nil { logrus . Errorf ( " " , p , err ) return err } return f . Close ( ) }
Create file because it doesn't exist yet
Create file because it doesn ' t exist yet